home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Make / source / configure < prev    next >
Encoding:
Text File  |  1997-09-19  |  108.7 KB  |  3,794 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Id: configure.in,v 1.58 1997/09/16 14:17:28 psmith Exp 
  4.  
  5. # Do all the work for Automake.  This macro actually does too much --
  6. # some checks are only needed if your package does certain things.
  7. # But this isn't really a big deal.
  8.  
  9. # serial 1
  10.  
  11.  
  12.  
  13.  
  14.  
  15. # serial 1
  16.  
  17.  
  18.  
  19. #
  20. # Check to make sure that the build environment is sane.
  21. #
  22.  
  23.  
  24.  
  25.  
  26.  
  27. # Like AC_CONFIG_HEADER, but automatically create stamp file.
  28.  
  29.  
  30.  
  31. # Define a conditional.
  32.  
  33.  
  34.  
  35. # Guess values for system-dependent variables and create Makefiles.
  36. # Generated automatically using autoconf version 2.12 
  37. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  38. #
  39. # This configure script is free software; the Free Software Foundation
  40. # gives unlimited permission to copy, distribute and modify it.
  41.  
  42. # Defaults:
  43. ac_help=
  44. ac_default_prefix=/usr/local
  45. # Any additions from configure.in:
  46. ac_help="$ac_help
  47. export jobs with the Customs daemon (NOT SUPPORTED)"
  48.  
  49. # Initialize some variables set by options.
  50. # The variables have the same names as the options, with
  51. # dashes changed to underlines.
  52. build=NONE
  53. cache_file=./config.cache
  54. exec_prefix=NONE
  55. host=NONE
  56. no_create=
  57. nonopt=NONE
  58. no_recursion=
  59. prefix=NONE
  60. program_prefix=NONE
  61. program_suffix=NONE
  62. program_transform_name=s,x,x,
  63. silent=
  64. site=
  65. srcdir=
  66. target=NONE
  67. verbose=
  68. x_includes=NONE
  69. x_libraries=NONE
  70. bindir='${exec_prefix}/bin'
  71. sbindir='${exec_prefix}/sbin'
  72. libexecdir='${exec_prefix}/libexec'
  73. datadir='${prefix}/share'
  74. sysconfdir='${prefix}/etc'
  75. sharedstatedir='${prefix}/com'
  76. localstatedir='${prefix}/var'
  77. libdir='${exec_prefix}/lib'
  78. includedir='${prefix}/include'
  79. oldincludedir='/usr/include'
  80. infodir='${prefix}/info'
  81. mandir='${prefix}/man'
  82.  
  83. # Initialize some other variables.
  84. subdirs=
  85. MFLAGS= MAKEFLAGS=
  86. # Maximum number of lines to put in a shell here document.
  87. ac_max_here_lines=12
  88.  
  89. ac_prev=
  90. for ac_option
  91. do
  92.  
  93.   # If the previous option needs an argument, assign it.
  94.   if test -n "$ac_prev"; then
  95.     eval "$ac_prev=\$ac_option"
  96.     ac_prev=
  97.     continue
  98.   fi
  99.  
  100.   case "$ac_option" in
  101.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  102.   *) ac_optarg= ;;
  103.   esac
  104.  
  105.   # Accept the important Cygnus configure options, so we can diagnose typos.
  106.  
  107.   case "$ac_option" in
  108.  
  109.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  110.     ac_prev=bindir ;;
  111.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  112.     bindir="$ac_optarg" ;;
  113.  
  114.   -build | --build | --buil | --bui | --bu)
  115.     ac_prev=build ;;
  116.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  117.     build="$ac_optarg" ;;
  118.  
  119.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  120.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  121.     ac_prev=cache_file ;;
  122.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  123.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  124.     cache_file="$ac_optarg" ;;
  125.  
  126.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  127.     ac_prev=datadir ;;
  128.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  129.   | --da=*)
  130.     datadir="$ac_optarg" ;;
  131.  
  132.   -disable-* | --disable-*)
  133.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  134.     # Reject names that are not valid shell variable names.
  135.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  136.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  137.     fi
  138.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  139.     eval "enable_${ac_feature}=no" ;;
  140.  
  141.   -enable-* | --enable-*)
  142.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  143.     # Reject names that are not valid shell variable names.
  144.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  145.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  146.     fi
  147.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  148.     case "$ac_option" in
  149.       *=*) ;;
  150.       *) ac_optarg=yes ;;
  151.     esac
  152.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  153.  
  154.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  155.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  156.   | --exec | --exe | --ex)
  157.     ac_prev=exec_prefix ;;
  158.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  159.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  160.   | --exec=* | --exe=* | --ex=*)
  161.     exec_prefix="$ac_optarg" ;;
  162.  
  163.   -gas | --gas | --ga | --g)
  164.     # Obsolete; use --with-gas.
  165.     with_gas=yes ;;
  166.  
  167.   -help | --help | --hel | --he)
  168.     # Omit some internal or obsolete options to make the list less imposing.
  169.     # This message is too long to be a string in the A/UX 3.1 sh.
  170.     cat << EOF
  171. Usage: configure [options] [host]
  172. Options: [defaults in brackets after descriptions]
  173. Configuration:
  174.   --cache-file=FILE       cache test results in FILE
  175.   --help                  print this message
  176.   --no-create             do not create output files
  177.   --quiet, --silent       do not print \`checking...' messages
  178.   --version               print the version of autoconf that created configure
  179. Directory and file names:
  180.   --prefix=PREFIX         install architecture-independent files in PREFIX
  181.                           [$ac_default_prefix]
  182.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  183.                           [same as prefix]
  184.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  185.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  186.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  187.   --datadir=DIR           read-only architecture-independent data in DIR
  188.                           [PREFIX/share]
  189.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  190.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  191.                           [PREFIX/com]
  192.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  193.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  194.   --includedir=DIR        C header files in DIR [PREFIX/include]
  195.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  196.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  197.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  198.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  199.   --program-prefix=PREFIX prepend PREFIX to installed program names
  200.   --program-suffix=SUFFIX append SUFFIX to installed program names
  201.   --program-transform-name=PROGRAM
  202.                           run sed PROGRAM on installed program names
  203. EOF
  204.     cat << EOF
  205. Host type:
  206.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  207.   --host=HOST             configure for HOST [guessed]
  208.   --target=TARGET         configure for TARGET [TARGET=HOST]
  209. Features and packages:
  210.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  211.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  212.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  213.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  214.   --x-includes=DIR        X include files are in DIR
  215.   --x-libraries=DIR       X library files are in DIR
  216. EOF
  217.     if test -n "$ac_help"; then
  218.       echo "--enable and --with options recognized:$ac_help"
  219.     fi
  220.     exit 0 ;;
  221.  
  222.   -host | --host | --hos | --ho)
  223.     ac_prev=host ;;
  224.   -host=* | --host=* | --hos=* | --ho=*)
  225.     host="$ac_optarg" ;;
  226.  
  227.   -includedir | --includedir | --includedi | --included | --include \
  228.   | --includ | --inclu | --incl | --inc)
  229.     ac_prev=includedir ;;
  230.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  231.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  232.     includedir="$ac_optarg" ;;
  233.  
  234.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  235.     ac_prev=infodir ;;
  236.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  237.     infodir="$ac_optarg" ;;
  238.  
  239.   -libdir | --libdir | --libdi | --libd)
  240.     ac_prev=libdir ;;
  241.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  242.     libdir="$ac_optarg" ;;
  243.  
  244.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  245.   | --libexe | --libex | --libe)
  246.     ac_prev=libexecdir ;;
  247.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  248.   | --libexe=* | --libex=* | --libe=*)
  249.     libexecdir="$ac_optarg" ;;
  250.  
  251.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  252.   | --localstate | --localstat | --localsta | --localst \
  253.   | --locals | --local | --loca | --loc | --lo)
  254.     ac_prev=localstatedir ;;
  255.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  256.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  257.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  258.     localstatedir="$ac_optarg" ;;
  259.  
  260.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  261.     ac_prev=mandir ;;
  262.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  263.     mandir="$ac_optarg" ;;
  264.  
  265.   -nfp | --nfp | --nf)
  266.     # Obsolete; use --without-fp.
  267.     with_fp=no ;;
  268.  
  269.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  270.   | --no-cr | --no-c)
  271.     no_create=yes ;;
  272.  
  273.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  274.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  275.     no_recursion=yes ;;
  276.  
  277.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  278.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  279.   | --oldin | --oldi | --old | --ol | --o)
  280.     ac_prev=oldincludedir ;;
  281.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  282.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  283.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  284.     oldincludedir="$ac_optarg" ;;
  285.  
  286.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  287.     ac_prev=prefix ;;
  288.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  289.     prefix="$ac_optarg" ;;
  290.  
  291.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  292.   | --program-pre | --program-pr | --program-p)
  293.     ac_prev=program_prefix ;;
  294.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  295.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  296.     program_prefix="$ac_optarg" ;;
  297.  
  298.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  299.   | --program-suf | --program-su | --program-s)
  300.     ac_prev=program_suffix ;;
  301.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  302.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  303.     program_suffix="$ac_optarg" ;;
  304.  
  305.   -program-transform-name | --program-transform-name \
  306.   | --program-transform-nam | --program-transform-na \
  307.   | --program-transform-n | --program-transform- \
  308.   | --program-transform | --program-transfor \
  309.   | --program-transfo | --program-transf \
  310.   | --program-trans | --program-tran \
  311.   | --progr-tra | --program-tr | --program-t)
  312.     ac_prev=program_transform_name ;;
  313.   -program-transform-name=* | --program-transform-name=* \
  314.   | --program-transform-nam=* | --program-transform-na=* \
  315.   | --program-transform-n=* | --program-transform-=* \
  316.   | --program-transform=* | --program-transfor=* \
  317.   | --program-transfo=* | --program-transf=* \
  318.   | --program-trans=* | --program-tran=* \
  319.   | --progr-tra=* | --program-tr=* | --program-t=*)
  320.     program_transform_name="$ac_optarg" ;;
  321.  
  322.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  323.   | -silent | --silent | --silen | --sile | --sil)
  324.     silent=yes ;;
  325.  
  326.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  327.     ac_prev=sbindir ;;
  328.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  329.   | --sbi=* | --sb=*)
  330.     sbindir="$ac_optarg" ;;
  331.  
  332.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  333.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  334.   | --sharedst | --shareds | --shared | --share | --shar \
  335.   | --sha | --sh)
  336.     ac_prev=sharedstatedir ;;
  337.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  338.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  339.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  340.   | --sha=* | --sh=*)
  341.     sharedstatedir="$ac_optarg" ;;
  342.  
  343.   -site | --site | --sit)
  344.     ac_prev=site ;;
  345.   -site=* | --site=* | --sit=*)
  346.     site="$ac_optarg" ;;
  347.  
  348.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  349.     ac_prev=srcdir ;;
  350.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  351.     srcdir="$ac_optarg" ;;
  352.  
  353.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  354.   | --syscon | --sysco | --sysc | --sys | --sy)
  355.     ac_prev=sysconfdir ;;
  356.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  357.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  358.     sysconfdir="$ac_optarg" ;;
  359.  
  360.   -target | --target | --targe | --targ | --tar | --ta | --t)
  361.     ac_prev=target ;;
  362.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  363.     target="$ac_optarg" ;;
  364.  
  365.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  366.     verbose=yes ;;
  367.  
  368.   -version | --version | --versio | --versi | --vers)
  369.     echo "configure generated by autoconf version 2.12"
  370.     exit 0 ;;
  371.  
  372.   -with-* | --with-*)
  373.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  374.     # Reject names that are not valid shell variable names.
  375.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  376.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  377.     fi
  378.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  379.     case "$ac_option" in
  380.       *=*) ;;
  381.       *) ac_optarg=yes ;;
  382.     esac
  383.     eval "with_${ac_package}='$ac_optarg'" ;;
  384.  
  385.   -without-* | --without-*)
  386.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  387.     # Reject names that are not valid shell variable names.
  388.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  389.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  390.     fi
  391.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  392.     eval "with_${ac_package}=no" ;;
  393.  
  394.   --x)
  395.     # Obsolete; use --with-x.
  396.     with_x=yes ;;
  397.  
  398.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  399.   | --x-incl | --x-inc | --x-in | --x-i)
  400.     ac_prev=x_includes ;;
  401.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  402.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  403.     x_includes="$ac_optarg" ;;
  404.  
  405.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  406.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  407.     ac_prev=x_libraries ;;
  408.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  409.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  410.     x_libraries="$ac_optarg" ;;
  411.  
  412.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  413.     ;;
  414.  
  415.   *)
  416.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  417.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  418.     fi
  419.     if test "x$nonopt" != xNONE; then
  420.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  421.     fi
  422.     nonopt="$ac_option"
  423.     ;;
  424.  
  425.   esac
  426. done
  427.  
  428. if test -n "$ac_prev"; then
  429.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  430. fi
  431.  
  432. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  433.  
  434. # File descriptor usage:
  435. # 0 standard input
  436. # 1 file creation
  437. # 2 errors and warnings
  438. # 3 some systems may open it to /dev/tty
  439. # 4 used on the Kubota Titan
  440. # 6 checking for... messages and results
  441. # 5 compiler messages saved in config.log
  442. if test "$silent" = yes; then
  443.   exec 6>/dev/null
  444. else
  445.   exec 6>&1
  446. fi
  447. exec 5>./config.log
  448.  
  449. echo "\
  450. This file contains any messages produced by compilers while
  451. running configure, to aid debugging if configure makes a mistake.
  452. " 1>&5
  453.  
  454. # Strip out --no-create and --no-recursion so they do not pile up.
  455. # Also quote any args containing shell metacharacters.
  456. ac_configure_args=
  457. for ac_arg
  458. do
  459.   case "$ac_arg" in
  460.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  461.   | --no-cr | --no-c) ;;
  462.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  463.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  464.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  465.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  466.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  467.   esac
  468. done
  469.  
  470. # NLS nuisances.
  471. # Only set these to C if already set.  These must not be set unconditionally
  472. # because not all systems understand e.g. LANG=C (notably SCO).
  473. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  474. # Non-C LC_CTYPE values break the ctype check.
  475. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  476. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  477. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  478. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  479.  
  480. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  481. rm -rf conftest* confdefs.h
  482. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  483. echo > confdefs.h
  484.  
  485. # A filename unique to this package, relative to the directory that
  486. # configure is in, which we can look for to find out if srcdir is correct.
  487. ac_unique_file=vpath.c
  488.  
  489. # Find the source files, if location was not specified.
  490. if test -z "$srcdir"; then
  491.   ac_srcdir_defaulted=yes
  492.   # Try the directory containing this script, then its parent.
  493.   ac_prog=$0
  494.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  495.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  496.   srcdir=$ac_confdir
  497.   if test ! -r $srcdir/$ac_unique_file; then
  498.     srcdir=..
  499.   fi
  500. else
  501.   ac_srcdir_defaulted=no
  502. fi
  503. if test ! -r $srcdir/$ac_unique_file; then
  504.   if test "$ac_srcdir_defaulted" = yes; then
  505.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  506.   else
  507.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  508.   fi
  509. fi
  510. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  511.  
  512. # Prefer explicitly selected file to automatically selected ones.
  513. if test -z "$CONFIG_SITE"; then
  514.   if test "x$prefix" != xNONE; then
  515.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  516.   else
  517.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  518.   fi
  519. fi
  520. for ac_site_file in $CONFIG_SITE; do
  521.   if test -r "$ac_site_file"; then
  522.     echo "loading site script $ac_site_file"
  523.     . "$ac_site_file"
  524.   fi
  525. done
  526.  
  527. if test -r "$cache_file"; then
  528.   echo "loading cache $cache_file"
  529.   . $cache_file
  530. else
  531.   echo "creating cache $cache_file"
  532.   > $cache_file
  533. fi
  534.  
  535. ac_ext=c
  536. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  537. ac_cpp='$CPP $CPPFLAGS'
  538. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  539. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  540. cross_compiling=$ac_cv_prog_cc_cross
  541.  
  542. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  543.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  544.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  545.     ac_n= ac_c='
  546. ' ac_t='    '
  547.   else
  548.     ac_n=-n ac_c= ac_t=
  549.   fi
  550. else
  551.   ac_n= ac_c='\c' ac_t=
  552. fi
  553.  
  554.  
  555. ac_aux_dir=
  556. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  557.   if test -f $ac_dir/install-sh; then
  558.     ac_aux_dir=$ac_dir
  559.     ac_install_sh="$ac_aux_dir/install-sh -c"
  560.     break
  561.   elif test -f $ac_dir/install.sh; then
  562.     ac_aux_dir=$ac_dir
  563.     ac_install_sh="$ac_aux_dir/install.sh -c"
  564.     break
  565.   fi
  566. done
  567. if test -z "$ac_aux_dir"; then
  568.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  569. fi
  570. ac_config_guess=$ac_aux_dir/config.guess
  571. ac_config_sub=$ac_aux_dir/config.sub
  572. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  573.  
  574. # Find a good install program.  We prefer a C program (faster),
  575. # so one script is as good as another.  But avoid the broken or
  576. # incompatible versions:
  577. # SysV /etc/install, /usr/sbin/install
  578. # SunOS /usr/etc/install
  579. # IRIX /sbin/install
  580. # AIX /bin/install
  581. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  582. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  583. # ./install, which can be erroneously created by make from ./install.sh.
  584. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  585. echo "configure:586: checking for a BSD compatible install" >&5
  586. if test -z "$INSTALL"; then
  587. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  588.   echo $ac_n "(cached) $ac_c" 1>&6
  589. else
  590.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  591.   for ac_dir in $PATH; do
  592.     # Account for people who put trailing slashes in PATH elements.
  593.     case "$ac_dir/" in
  594.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  595.     *)
  596.       # OSF1 and SCO ODT 3.0 have their own names for install.
  597.       for ac_prog in ginstall installbsd scoinst install; do
  598.         if test -f $ac_dir/$ac_prog; then
  599.       if test $ac_prog = install &&
  600.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  601.         # AIX install.  It has an incompatible calling convention.
  602.         # OSF/1 installbsd also uses dspmsg, but is usable.
  603.         :
  604.       else
  605.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  606.         break 2
  607.       fi
  608.     fi
  609.       done
  610.       ;;
  611.     esac
  612.   done
  613.   IFS="$ac_save_IFS"
  614.  
  615. fi
  616.   if test "${ac_cv_path_install+set}" = set; then
  617.     INSTALL="$ac_cv_path_install"
  618.   else
  619.     # As a last resort, use the slow shell script.  We don't cache a
  620.     # path for INSTALL within a source directory, because that will
  621.     # break other packages using the cache if that directory is
  622.     # removed, or if the path is relative.
  623.     INSTALL="$ac_install_sh"
  624.   fi
  625. fi
  626. echo "$ac_t""$INSTALL" 1>&6
  627.  
  628. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  629. # It thinks the first close brace ends the variable substitution.
  630. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  631.  
  632. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  633.  
  634.  
  635. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  636.  
  637.  
  638. PACKAGE=make
  639.  
  640. VERSION=3.76.1
  641.  
  642. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  643.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  644. fi
  645. cat >> confdefs.h <<EOF
  646. #define PACKAGE "$PACKAGE"
  647. EOF
  648.  
  649. cat >> confdefs.h <<EOF
  650. #define VERSION "$VERSION"
  651. EOF
  652.  
  653. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  654. echo "configure:655: checking whether build environment is sane" >&5
  655. # Just in case
  656. sleep 1
  657. echo timestamp > conftestfile
  658. # Do `set' in a subshell so we don't clobber the current shell's
  659. # arguments.  Must try -L first in case configure is actually a
  660. # symlink; some systems play weird games with the mod time of symlinks
  661. # (eg FreeBSD returns the mod time of the symlink's containing
  662. # directory).
  663. if (
  664.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  665.    if test "" = "X"; then
  666.       # -L didn't work.
  667.       set X `ls -t $srcdir/configure conftestfile`
  668.    fi
  669.    test "$2" = conftestfile
  670.    )
  671. then
  672.    # Ok.
  673.    :
  674. else
  675.    { echo "configure: error: newly created file is older than distributed files!
  676. Check your system clock" 1>&2; exit 1; }
  677. fi
  678. rm -f conftest*
  679. echo "$ac_t""yes" 1>&6
  680. if test "$program_transform_name" = s,x,x,; then
  681.   program_transform_name=
  682. else
  683.   # Double any \ or $.  echo might interpret backslashes.
  684.   cat <<\EOF_SED > conftestsed
  685. s,\\,\\\\,g; s,\$,$$,g
  686. EOF_SED
  687.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  688.   rm -f conftestsed
  689. fi
  690. test "$program_prefix" != NONE &&
  691.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  692. # Use a double $ so make ignores it.
  693. test "$program_suffix" != NONE &&
  694.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  695.  
  696. # sed with no file args requires a program.
  697. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  698.  
  699. missing_dir=`cd $ac_aux_dir && pwd`
  700. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  701. echo "configure:702: checking for working aclocal" >&5
  702. # Run test in a subshell; some versions of sh will print an error if
  703. # an executable is not found, even if stderr is redirected.
  704. # Redirect stdin to placate older versions of autoconf.  Sigh.
  705. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  706.    ACLOCAL=aclocal
  707.    echo "$ac_t""found" 1>&6
  708. else
  709.    ACLOCAL="$missing_dir/missing aclocal"
  710.    echo "$ac_t""missing" 1>&6
  711. fi
  712.  
  713. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  714. echo "configure:715: checking for working autoconf" >&5
  715. # Run test in a subshell; some versions of sh will print an error if
  716. # an executable is not found, even if stderr is redirected.
  717. # Redirect stdin to placate older versions of autoconf.  Sigh.
  718. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  719.    AUTOCONF=autoconf
  720.    echo "$ac_t""found" 1>&6
  721. else
  722.    AUTOCONF="$missing_dir/missing autoconf"
  723.    echo "$ac_t""missing" 1>&6
  724. fi
  725.  
  726. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  727. echo "configure:728: checking for working automake" >&5
  728. # Run test in a subshell; some versions of sh will print an error if
  729. # an executable is not found, even if stderr is redirected.
  730. # Redirect stdin to placate older versions of autoconf.  Sigh.
  731. if (automake --version) < /dev/null > /dev/null 2>&1; then
  732.    AUTOMAKE=automake
  733.    echo "$ac_t""found" 1>&6
  734. else
  735.    AUTOMAKE="$missing_dir/missing automake"
  736.    echo "$ac_t""missing" 1>&6
  737. fi
  738.  
  739. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  740. echo "configure:741: checking for working autoheader" >&5
  741. # Run test in a subshell; some versions of sh will print an error if
  742. # an executable is not found, even if stderr is redirected.
  743. # Redirect stdin to placate older versions of autoconf.  Sigh.
  744. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  745.    AUTOHEADER=autoheader
  746.    echo "$ac_t""found" 1>&6
  747. else
  748.    AUTOHEADER="$missing_dir/missing autoheader"
  749.    echo "$ac_t""missing" 1>&6
  750. fi
  751.  
  752. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  753. echo "configure:754: checking for working makeinfo" >&5
  754. # Run test in a subshell; some versions of sh will print an error if
  755. # an executable is not found, even if stderr is redirected.
  756. # Redirect stdin to placate older versions of autoconf.  Sigh.
  757. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  758.    MAKEINFO=makeinfo
  759.    echo "$ac_t""found" 1>&6
  760. else
  761.    MAKEINFO="$missing_dir/missing makeinfo"
  762.    echo "$ac_t""missing" 1>&6
  763. fi
  764.  
  765. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  766. echo "configure:767: checking whether ${MAKE-make} sets \${MAKE}" >&5
  767. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  768. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  769.   echo $ac_n "(cached) $ac_c" 1>&6
  770. else
  771.   cat > conftestmake <<\EOF
  772. all:
  773.     @echo 'ac_maketemp="${MAKE}"'
  774. EOF
  775. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  776. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  777. if test -n "$ac_maketemp"; then
  778.   eval ac_cv_prog_make_${ac_make}_set=yes
  779. else
  780.   eval ac_cv_prog_make_${ac_make}_set=no
  781. fi
  782. rm -f conftestmake
  783. fi
  784. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  785.   echo "$ac_t""yes" 1>&6
  786.   SET_MAKE=
  787. else
  788.   echo "$ac_t""no" 1>&6
  789.   SET_MAKE="MAKE=${MAKE-make}"
  790. fi
  791.  
  792.  
  793.  
  794.  
  795. subdirs="glob"
  796.  
  797.  
  798.  
  799.  
  800. if test -r $srcdir/maintMakefile; then
  801.   MAINT_MAKEFILE_TRUE=
  802.   MAINT_MAKEFILE_FALSE='#'
  803. else
  804.   MAINT_MAKEFILE_TRUE='#'
  805.   MAINT_MAKEFILE_FALSE=
  806. fi
  807.  
  808.  
  809. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  810. echo "configure:811: checking whether ${MAKE-make} sets \${MAKE}" >&5
  811. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  812. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  813.   echo $ac_n "(cached) $ac_c" 1>&6
  814. else
  815.   cat > conftestmake <<\EOF
  816. all:
  817.     @echo 'ac_maketemp="${MAKE}"'
  818. EOF
  819. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  820. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  821. if test -n "$ac_maketemp"; then
  822.   eval ac_cv_prog_make_${ac_make}_set=yes
  823. else
  824.   eval ac_cv_prog_make_${ac_make}_set=no
  825. fi
  826. rm -f conftestmake
  827. fi
  828. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  829.   echo "$ac_t""yes" 1>&6
  830.   SET_MAKE=
  831. else
  832.   echo "$ac_t""no" 1>&6
  833.   SET_MAKE="MAKE=${MAKE-make}"
  834. fi
  835.  
  836. # Extract the first word of "gcc", so it can be a program name with args.
  837. set dummy gcc; ac_word=$2
  838. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  839. echo "configure:840: checking for $ac_word" >&5
  840. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  841.   echo $ac_n "(cached) $ac_c" 1>&6
  842. else
  843.   if test -n "$CC"; then
  844.   ac_cv_prog_CC="$CC" # Let the user override the test.
  845. else
  846.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  847.   for ac_dir in $PATH; do
  848.     test -z "$ac_dir" && ac_dir=.
  849.     if test -f $ac_dir/$ac_word; then
  850.       ac_cv_prog_CC="gcc"
  851.       break
  852.     fi
  853.   done
  854.   IFS="$ac_save_ifs"
  855. fi
  856. fi
  857. CC="$ac_cv_prog_CC"
  858. if test -n "$CC"; then
  859.   echo "$ac_t""$CC" 1>&6
  860. else
  861.   echo "$ac_t""no" 1>&6
  862. fi
  863.  
  864. if test -z "$CC"; then
  865.   # Extract the first word of "cc", so it can be a program name with args.
  866. set dummy cc; ac_word=$2
  867. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  868. echo "configure:869: checking for $ac_word" >&5
  869. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  870.   echo $ac_n "(cached) $ac_c" 1>&6
  871. else
  872.   if test -n "$CC"; then
  873.   ac_cv_prog_CC="$CC" # Let the user override the test.
  874. else
  875.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  876.   ac_prog_rejected=no
  877.   for ac_dir in $PATH; do
  878.     test -z "$ac_dir" && ac_dir=.
  879.     if test -f $ac_dir/$ac_word; then
  880.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  881.         ac_prog_rejected=yes
  882.     continue
  883.       fi
  884.       ac_cv_prog_CC="cc"
  885.       break
  886.     fi
  887.   done
  888.   IFS="$ac_save_ifs"
  889. if test $ac_prog_rejected = yes; then
  890.   # We found a bogon in the path, so make sure we never use it.
  891.   set dummy $ac_cv_prog_CC
  892.   shift
  893.   if test $# -gt 0; then
  894.     # We chose a different compiler from the bogus one.
  895.     # However, it has the same basename, so the bogon will be chosen
  896.     # first if we set CC to just the basename; use the full file name.
  897.     shift
  898.     set dummy "$ac_dir/$ac_word" "$@"
  899.     shift
  900.     ac_cv_prog_CC="$@"
  901.   fi
  902. fi
  903. fi
  904. fi
  905. CC="$ac_cv_prog_CC"
  906. if test -n "$CC"; then
  907.   echo "$ac_t""$CC" 1>&6
  908. else
  909.   echo "$ac_t""no" 1>&6
  910. fi
  911.  
  912.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  913. fi
  914.  
  915. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  916. echo "configure:917: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  917.  
  918. ac_ext=c
  919. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  920. ac_cpp='$CPP $CPPFLAGS'
  921. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  922. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  923. cross_compiling=$ac_cv_prog_cc_cross
  924.  
  925. cat > conftest.$ac_ext <<EOF
  926. #line 927 "configure"
  927. #include "confdefs.h"
  928. main(){return(0);}
  929. EOF
  930. if { (eval echo configure:931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  931.   ac_cv_prog_cc_works=yes
  932.   # If we can't run a trivial program, we are probably using a cross compiler.
  933.   if (./conftest; exit) 2>/dev/null; then
  934.     ac_cv_prog_cc_cross=no
  935.   else
  936.     ac_cv_prog_cc_cross=yes
  937.   fi
  938. else
  939.   echo "configure: failed program was:" >&5
  940.   cat conftest.$ac_ext >&5
  941.   ac_cv_prog_cc_works=no
  942. fi
  943. rm -fr conftest*
  944.  
  945. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  946. if test $ac_cv_prog_cc_works = no; then
  947.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  948. fi
  949. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  950. echo "configure:951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  951. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  952. cross_compiling=$ac_cv_prog_cc_cross
  953.  
  954. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  955. echo "configure:956: checking whether we are using GNU C" >&5
  956. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  957.   echo $ac_n "(cached) $ac_c" 1>&6
  958. else
  959.   cat > conftest.c <<EOF
  960. #ifdef __GNUC__
  961.   yes;
  962. #endif
  963. EOF
  964. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  965.   ac_cv_prog_gcc=yes
  966. else
  967.   ac_cv_prog_gcc=no
  968. fi
  969. fi
  970.  
  971. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  972.  
  973. if test $ac_cv_prog_gcc = yes; then
  974.   GCC=yes
  975.   ac_test_CFLAGS="${CFLAGS+set}"
  976.   ac_save_CFLAGS="$CFLAGS"
  977.   CFLAGS=
  978.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  979. echo "configure:980: checking whether ${CC-cc} accepts -g" >&5
  980. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  981.   echo $ac_n "(cached) $ac_c" 1>&6
  982. else
  983.   echo 'void f(){}' > conftest.c
  984. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  985.   ac_cv_prog_cc_g=yes
  986. else
  987.   ac_cv_prog_cc_g=no
  988. fi
  989. rm -f conftest*
  990.  
  991. fi
  992.  
  993. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  994.   if test "$ac_test_CFLAGS" = set; then
  995.     CFLAGS="$ac_save_CFLAGS"
  996.   elif test $ac_cv_prog_cc_g = yes; then
  997.     CFLAGS="-g -O2"
  998.   else
  999.     CFLAGS="-O2"
  1000.   fi
  1001. else
  1002.   GCC=
  1003.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  1004. fi
  1005.  
  1006. # Find a good install program.  We prefer a C program (faster),
  1007. # so one script is as good as another.  But avoid the broken or
  1008. # incompatible versions:
  1009. # SysV /etc/install, /usr/sbin/install
  1010. # SunOS /usr/etc/install
  1011. # IRIX /sbin/install
  1012. # AIX /bin/install
  1013. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1014. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1015. # ./install, which can be erroneously created by make from ./install.sh.
  1016. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1017. echo "configure:1018: checking for a BSD compatible install" >&5
  1018. if test -z "$INSTALL"; then
  1019. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1020.   echo $ac_n "(cached) $ac_c" 1>&6
  1021. else
  1022.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  1023.   for ac_dir in $PATH; do
  1024.     # Account for people who put trailing slashes in PATH elements.
  1025.     case "$ac_dir/" in
  1026.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1027.     *)
  1028.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1029.       for ac_prog in ginstall installbsd scoinst install; do
  1030.         if test -f $ac_dir/$ac_prog; then
  1031.       if test $ac_prog = install &&
  1032.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1033.         # AIX install.  It has an incompatible calling convention.
  1034.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1035.         :
  1036.       else
  1037.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1038.         break 2
  1039.       fi
  1040.     fi
  1041.       done
  1042.       ;;
  1043.     esac
  1044.   done
  1045.   IFS="$ac_save_IFS"
  1046.  
  1047. fi
  1048.   if test "${ac_cv_path_install+set}" = set; then
  1049.     INSTALL="$ac_cv_path_install"
  1050.   else
  1051.     # As a last resort, use the slow shell script.  We don't cache a
  1052.     # path for INSTALL within a source directory, because that will
  1053.     # break other packages using the cache if that directory is
  1054.     # removed, or if the path is relative.
  1055.     INSTALL="$ac_install_sh"
  1056.   fi
  1057. fi
  1058. echo "$ac_t""$INSTALL" 1>&6
  1059.  
  1060. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1061. # It thinks the first close brace ends the variable substitution.
  1062. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1063.  
  1064. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1065.  
  1066. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1067. echo "configure:1068: checking how to run the C preprocessor" >&5
  1068. # On Suns, sometimes $CPP names a directory.
  1069. if test -n "$CPP" && test -d "$CPP"; then
  1070.   CPP=
  1071. fi
  1072. if test -z "$CPP"; then
  1073. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1074.   echo $ac_n "(cached) $ac_c" 1>&6
  1075. else
  1076.     # This must be in double quotes, not single quotes, because CPP may get
  1077.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1078.   CPP="${CC-cc} -E"
  1079.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1080.   # not just through cpp.
  1081.   cat > conftest.$ac_ext <<EOF
  1082. #line 1083 "configure"
  1083. #include "confdefs.h"
  1084. #include <assert.h>
  1085. Syntax Error
  1086. EOF
  1087. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1088. { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1089. ac_err=`grep -v '^ *+' conftest.out`
  1090. if test -z "$ac_err"; then
  1091.   :
  1092. else
  1093.   echo "$ac_err" >&5
  1094.   echo "configure: failed program was:" >&5
  1095.   cat conftest.$ac_ext >&5
  1096.   rm -rf conftest*
  1097.   CPP="${CC-cc} -E -traditional-cpp"
  1098.   cat > conftest.$ac_ext <<EOF
  1099. #line 1100 "configure"
  1100. #include "confdefs.h"
  1101. #include <assert.h>
  1102. Syntax Error
  1103. EOF
  1104. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1105. { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1106. ac_err=`grep -v '^ *+' conftest.out`
  1107. if test -z "$ac_err"; then
  1108.   :
  1109. else
  1110.   echo "$ac_err" >&5
  1111.   echo "configure: failed program was:" >&5
  1112.   cat conftest.$ac_ext >&5
  1113.   rm -rf conftest*
  1114.   CPP=/lib/cpp
  1115. fi
  1116. rm -f conftest*
  1117. fi
  1118. rm -f conftest*
  1119.   ac_cv_prog_CPP="$CPP"
  1120. fi
  1121.   CPP="$ac_cv_prog_CPP"
  1122. else
  1123.   ac_cv_prog_CPP="$CPP"
  1124. fi
  1125. echo "$ac_t""$CPP" 1>&6
  1126.             if test "$program_transform_name" = s,x,x,; then
  1127.   program_transform_name=
  1128. else
  1129.   # Double any \ or $.  echo might interpret backslashes.
  1130.   cat <<\EOF_SED > conftestsed
  1131. s,\\,\\\\,g; s,\$,$$,g
  1132. EOF_SED
  1133.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1134.   rm -f conftestsed
  1135. fi
  1136. test "$program_prefix" != NONE &&
  1137.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1138. # Use a double $ so make ignores it.
  1139. test "$program_suffix" != NONE &&
  1140.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1141.  
  1142. # sed with no file args requires a program.
  1143. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1144.  
  1145. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1146. echo "configure:1147: checking for AIX" >&5
  1147. cat > conftest.$ac_ext <<EOF
  1148. #line 1149 "configure"
  1149. #include "confdefs.h"
  1150. #ifdef _AIX
  1151.   yes
  1152. #endif
  1153.  
  1154. EOF
  1155. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1156.   egrep "yes" >/dev/null 2>&1; then
  1157.   rm -rf conftest*
  1158.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1159. #define _ALL_SOURCE 1
  1160. EOF
  1161.  
  1162. else
  1163.   rm -rf conftest*
  1164.   echo "$ac_t""no" 1>&6
  1165. fi
  1166. rm -f conftest*
  1167.  
  1168.  
  1169. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1170. echo "configure:1171: checking for POSIXized ISC" >&5
  1171. if test -d /etc/conf/kconfig.d &&
  1172.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1173. then
  1174.   echo "$ac_t""yes" 1>&6
  1175.   ISC=yes # If later tests want to check for ISC.
  1176.   cat >> confdefs.h <<\EOF
  1177. #define _POSIX_SOURCE 1
  1178. EOF
  1179.  
  1180.   if test "$GCC" = yes; then
  1181.     CC="$CC -posix"
  1182.   else
  1183.     CC="$CC -Xp"
  1184.   fi
  1185. else
  1186.   echo "$ac_t""no" 1>&6
  1187.   ISC=
  1188. fi
  1189.  
  1190. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  1191. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1192. echo "configure:1193: checking for minix/config.h" >&5
  1193. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1194.   echo $ac_n "(cached) $ac_c" 1>&6
  1195. else
  1196.   cat > conftest.$ac_ext <<EOF
  1197. #line 1198 "configure"
  1198. #include "confdefs.h"
  1199. #include <minix/config.h>
  1200. EOF
  1201. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1202. { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1203. ac_err=`grep -v '^ *+' conftest.out`
  1204. if test -z "$ac_err"; then
  1205.   rm -rf conftest*
  1206.   eval "ac_cv_header_$ac_safe=yes"
  1207. else
  1208.   echo "$ac_err" >&5
  1209.   echo "configure: failed program was:" >&5
  1210.   cat conftest.$ac_ext >&5
  1211.   rm -rf conftest*
  1212.   eval "ac_cv_header_$ac_safe=no"
  1213. fi
  1214. rm -f conftest*
  1215. fi
  1216. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1217.   echo "$ac_t""yes" 1>&6
  1218.   MINIX=yes
  1219. else
  1220.   echo "$ac_t""no" 1>&6
  1221. MINIX=
  1222. fi
  1223.  
  1224. if test "$MINIX" = yes; then
  1225.   cat >> confdefs.h <<\EOF
  1226. #define _POSIX_SOURCE 1
  1227. EOF
  1228.  
  1229.   cat >> confdefs.h <<\EOF
  1230. #define _POSIX_1_SOURCE 2
  1231. EOF
  1232.  
  1233.   cat >> confdefs.h <<\EOF
  1234. #define _MINIX 1
  1235. EOF
  1236.  
  1237. fi
  1238.  
  1239. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1240. echo "configure:1241: checking for ANSI C header files" >&5
  1241. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1242.   echo $ac_n "(cached) $ac_c" 1>&6
  1243. else
  1244.   cat > conftest.$ac_ext <<EOF
  1245. #line 1246 "configure"
  1246. #include "confdefs.h"
  1247. #include <stdlib.h>
  1248. #include <stdarg.h>
  1249. #include <string.h>
  1250. #include <float.h>
  1251. EOF
  1252. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1253. { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1254. ac_err=`grep -v '^ *+' conftest.out`
  1255. if test -z "$ac_err"; then
  1256.   rm -rf conftest*
  1257.   ac_cv_header_stdc=yes
  1258. else
  1259.   echo "$ac_err" >&5
  1260.   echo "configure: failed program was:" >&5
  1261.   cat conftest.$ac_ext >&5
  1262.   rm -rf conftest*
  1263.   ac_cv_header_stdc=no
  1264. fi
  1265. rm -f conftest*
  1266.  
  1267. if test $ac_cv_header_stdc = yes; then
  1268.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1269. cat > conftest.$ac_ext <<EOF
  1270. #line 1271 "configure"
  1271. #include "confdefs.h"
  1272. #include <string.h>
  1273. EOF
  1274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1275.   egrep "memchr" >/dev/null 2>&1; then
  1276.   :
  1277. else
  1278.   rm -rf conftest*
  1279.   ac_cv_header_stdc=no
  1280. fi
  1281. rm -f conftest*
  1282.  
  1283. fi
  1284.  
  1285. if test $ac_cv_header_stdc = yes; then
  1286.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1287. cat > conftest.$ac_ext <<EOF
  1288. #line 1289 "configure"
  1289. #include "confdefs.h"
  1290. #include <stdlib.h>
  1291. EOF
  1292. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1293.   egrep "free" >/dev/null 2>&1; then
  1294.   :
  1295. else
  1296.   rm -rf conftest*
  1297.   ac_cv_header_stdc=no
  1298. fi
  1299. rm -f conftest*
  1300.  
  1301. fi
  1302.  
  1303. if test $ac_cv_header_stdc = yes; then
  1304.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1305. if test "$cross_compiling" = yes; then
  1306.   :
  1307. else
  1308.   cat > conftest.$ac_ext <<EOF
  1309. #line 1310 "configure"
  1310. #include "confdefs.h"
  1311. #include <ctype.h>
  1312. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1313. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1314. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1315. int main () { int i; for (i = 0; i < 256; i++)
  1316. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1317. exit (0); }
  1318.  
  1319. EOF
  1320. if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1321. then
  1322.   :
  1323. else
  1324.   echo "configure: failed program was:" >&5
  1325.   cat conftest.$ac_ext >&5
  1326.   rm -fr conftest*
  1327.   ac_cv_header_stdc=no
  1328. fi
  1329. rm -fr conftest*
  1330. fi
  1331.  
  1332. fi
  1333. fi
  1334.  
  1335. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1336. if test $ac_cv_header_stdc = yes; then
  1337.   cat >> confdefs.h <<\EOF
  1338. #define STDC_HEADERS 1
  1339. EOF
  1340.  
  1341. fi
  1342.  
  1343. ac_header_dirent=no
  1344. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1345. do
  1346. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1347. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1348. echo "configure:1349: checking for $ac_hdr that defines DIR" >&5
  1349. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1350.   echo $ac_n "(cached) $ac_c" 1>&6
  1351. else
  1352.   cat > conftest.$ac_ext <<EOF
  1353. #line 1354 "configure"
  1354. #include "confdefs.h"
  1355. #include <sys/types.h>
  1356. #include <$ac_hdr>
  1357. int main() {
  1358. DIR *dirp = 0;
  1359. ; return 0; }
  1360. EOF
  1361. if { (eval echo configure:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1362.   rm -rf conftest*
  1363.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1364. else
  1365.   echo "configure: failed program was:" >&5
  1366.   cat conftest.$ac_ext >&5
  1367.   rm -rf conftest*
  1368.   eval "ac_cv_header_dirent_$ac_safe=no"
  1369. fi
  1370. rm -f conftest*
  1371. fi
  1372. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1373.   echo "$ac_t""yes" 1>&6
  1374.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1375.   cat >> confdefs.h <<EOF
  1376. #define $ac_tr_hdr 1
  1377. EOF
  1378.  ac_header_dirent=$ac_hdr; break
  1379. else
  1380.   echo "$ac_t""no" 1>&6
  1381. fi
  1382. done
  1383. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1384. if test $ac_header_dirent = dirent.h; then
  1385. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1386. echo "configure:1387: checking for opendir in -ldir" >&5
  1387. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1388. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1389.   echo $ac_n "(cached) $ac_c" 1>&6
  1390. else
  1391.   ac_save_LIBS="$LIBS"
  1392. LIBS="-ldir  $LIBS"
  1393. cat > conftest.$ac_ext <<EOF
  1394. #line 1395 "configure"
  1395. #include "confdefs.h"
  1396. /* Override any gcc2 internal prototype to avoid an error.  */
  1397. /* We use char because int might match the return type of a gcc2
  1398.     builtin and then its argument prototype would still apply.  */
  1399. char opendir();
  1400.  
  1401. int main() {
  1402. opendir()
  1403. ; return 0; }
  1404. EOF
  1405. if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1406.   rm -rf conftest*
  1407.   eval "ac_cv_lib_$ac_lib_var=yes"
  1408. else
  1409.   echo "configure: failed program was:" >&5
  1410.   cat conftest.$ac_ext >&5
  1411.   rm -rf conftest*
  1412.   eval "ac_cv_lib_$ac_lib_var=no"
  1413. fi
  1414. rm -f conftest*
  1415. LIBS="$ac_save_LIBS"
  1416.  
  1417. fi
  1418. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1419.   echo "$ac_t""yes" 1>&6
  1420.   LIBS="$LIBS -ldir"
  1421. else
  1422.   echo "$ac_t""no" 1>&6
  1423. fi
  1424.  
  1425. else
  1426. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1427. echo "configure:1428: checking for opendir in -lx" >&5
  1428. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1429. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1430.   echo $ac_n "(cached) $ac_c" 1>&6
  1431. else
  1432.   ac_save_LIBS="$LIBS"
  1433. LIBS="-lx  $LIBS"
  1434. cat > conftest.$ac_ext <<EOF
  1435. #line 1436 "configure"
  1436. #include "confdefs.h"
  1437. /* Override any gcc2 internal prototype to avoid an error.  */
  1438. /* We use char because int might match the return type of a gcc2
  1439.     builtin and then its argument prototype would still apply.  */
  1440. char opendir();
  1441.  
  1442. int main() {
  1443. opendir()
  1444. ; return 0; }
  1445. EOF
  1446. if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1447.   rm -rf conftest*
  1448.   eval "ac_cv_lib_$ac_lib_var=yes"
  1449. else
  1450.   echo "configure: failed program was:" >&5
  1451.   cat conftest.$ac_ext >&5
  1452.   rm -rf conftest*
  1453.   eval "ac_cv_lib_$ac_lib_var=no"
  1454. fi
  1455. rm -f conftest*
  1456. LIBS="$ac_save_LIBS"
  1457.  
  1458. fi
  1459. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1460.   echo "$ac_t""yes" 1>&6
  1461.   LIBS="$LIBS -lx"
  1462. else
  1463.   echo "$ac_t""no" 1>&6
  1464. fi
  1465.  
  1466. fi
  1467.  
  1468. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1469. echo "configure:1470: checking for uid_t in sys/types.h" >&5
  1470. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1471.   echo $ac_n "(cached) $ac_c" 1>&6
  1472. else
  1473.   cat > conftest.$ac_ext <<EOF
  1474. #line 1475 "configure"
  1475. #include "confdefs.h"
  1476. #include <sys/types.h>
  1477. EOF
  1478. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1479.   egrep "uid_t" >/dev/null 2>&1; then
  1480.   rm -rf conftest*
  1481.   ac_cv_type_uid_t=yes
  1482. else
  1483.   rm -rf conftest*
  1484.   ac_cv_type_uid_t=no
  1485. fi
  1486. rm -f conftest*
  1487.  
  1488. fi
  1489.  
  1490. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1491. if test $ac_cv_type_uid_t = no; then
  1492.   cat >> confdefs.h <<\EOF
  1493. #define uid_t int
  1494. EOF
  1495.  
  1496.   cat >> confdefs.h <<\EOF
  1497. #define gid_t int
  1498. EOF
  1499.  
  1500. fi
  1501.             echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1502. echo "configure:1503: checking for pid_t" >&5
  1503. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1504.   echo $ac_n "(cached) $ac_c" 1>&6
  1505. else
  1506.   cat > conftest.$ac_ext <<EOF
  1507. #line 1508 "configure"
  1508. #include "confdefs.h"
  1509. #include <sys/types.h>
  1510. #if STDC_HEADERS
  1511. #include <stdlib.h>
  1512. #include <stddef.h>
  1513. #endif
  1514. EOF
  1515. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1516.   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1517.   rm -rf conftest*
  1518.   ac_cv_type_pid_t=yes
  1519. else
  1520.   rm -rf conftest*
  1521.   ac_cv_type_pid_t=no
  1522. fi
  1523. rm -f conftest*
  1524.  
  1525. fi
  1526. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1527. if test $ac_cv_type_pid_t = no; then
  1528.   cat >> confdefs.h <<\EOF
  1529. #define pid_t int
  1530. EOF
  1531.  
  1532. fi
  1533.  
  1534. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1535. echo "configure:1536: checking return type of signal handlers" >&5
  1536. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1537.   echo $ac_n "(cached) $ac_c" 1>&6
  1538. else
  1539.   cat > conftest.$ac_ext <<EOF
  1540. #line 1541 "configure"
  1541. #include "confdefs.h"
  1542. #include <sys/types.h>
  1543. #include <signal.h>
  1544. #ifdef signal
  1545. #undef signal
  1546. #endif
  1547. #ifdef __cplusplus
  1548. extern "C" void (*signal (int, void (*)(int)))(int);
  1549. #else
  1550. void (*signal ()) ();
  1551. #endif
  1552.  
  1553. int main() {
  1554. int i;
  1555. ; return 0; }
  1556. EOF
  1557. if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1558.   rm -rf conftest*
  1559.   ac_cv_type_signal=void
  1560. else
  1561.   echo "configure: failed program was:" >&5
  1562.   cat conftest.$ac_ext >&5
  1563.   rm -rf conftest*
  1564.   ac_cv_type_signal=int
  1565. fi
  1566. rm -f conftest*
  1567. fi
  1568.  
  1569. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1570. cat >> confdefs.h <<EOF
  1571. #define RETSIGTYPE $ac_cv_type_signal
  1572. EOF
  1573.  
  1574.  
  1575. for ac_hdr in unistd.h limits.h sys/param.h fcntl.h string.h memory.h \
  1576.              sys/timeb.h
  1577. do
  1578. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1579. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1580. echo "configure:1581: checking for $ac_hdr" >&5
  1581. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1582.   echo $ac_n "(cached) $ac_c" 1>&6
  1583. else
  1584.   cat > conftest.$ac_ext <<EOF
  1585. #line 1586 "configure"
  1586. #include "confdefs.h"
  1587. #include <$ac_hdr>
  1588. EOF
  1589. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1590. { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1591. ac_err=`grep -v '^ *+' conftest.out`
  1592. if test -z "$ac_err"; then
  1593.   rm -rf conftest*
  1594.   eval "ac_cv_header_$ac_safe=yes"
  1595. else
  1596.   echo "$ac_err" >&5
  1597.   echo "configure: failed program was:" >&5
  1598.   cat conftest.$ac_ext >&5
  1599.   rm -rf conftest*
  1600.   eval "ac_cv_header_$ac_safe=no"
  1601. fi
  1602. rm -f conftest*
  1603. fi
  1604. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1605.   echo "$ac_t""yes" 1>&6
  1606.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1607.   cat >> confdefs.h <<EOF
  1608. #define $ac_tr_hdr 1
  1609. EOF
  1610.  
  1611. else
  1612.   echo "$ac_t""no" 1>&6
  1613. fi
  1614. done
  1615.  
  1616. if test "x$CC" != xcc; then
  1617.   echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
  1618. echo "configure:1619: checking whether $CC and cc understand -c and -o together" >&5
  1619. else
  1620.   echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
  1621. echo "configure:1622: checking whether cc understands -c and -o together" >&5
  1622. fi
  1623. set dummy $CC; ac_cc="`echo $2 |
  1624.                sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
  1625. if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
  1626.   echo $ac_n "(cached) $ac_c" 1>&6
  1627. else
  1628.   echo 'foo(){}' > conftest.c
  1629. # Make sure it works both with $CC and with simple cc.
  1630. # We do the test twice because some compilers refuse to overwrite an
  1631. # existing .o file with -o, though they will create one.
  1632. ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
  1633. if { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
  1634.    test -f conftest.o && { (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  1635. then
  1636.   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  1637.   if test "x$CC" != xcc; then
  1638.     # Test first that cc exists at all.
  1639.     if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
  1640.       ac_try='cc -c conftest.c -o conftest.o 1>&5'
  1641.       if { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
  1642.      test -f conftest.o && { (eval echo configure:1643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  1643.       then
  1644.         # cc works too.
  1645.         :
  1646.       else
  1647.         # cc exists but doesn't like -o.
  1648.         eval ac_cv_prog_cc_${ac_cc}_c_o=no
  1649.       fi
  1650.     fi
  1651.   fi
  1652. else
  1653.   eval ac_cv_prog_cc_${ac_cc}_c_o=no
  1654. fi
  1655. rm -f conftest*
  1656.  
  1657. fi
  1658. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  1659.   echo "$ac_t""yes" 1>&6
  1660. else
  1661.   echo "$ac_t""no" 1>&6
  1662.   cat >> confdefs.h <<\EOF
  1663. #define NO_MINUS_C_MINUS_O 1
  1664. EOF
  1665.  
  1666. fi
  1667.  
  1668. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1669. echo "configure:1670: checking for working const" >&5
  1670. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1671.   echo $ac_n "(cached) $ac_c" 1>&6
  1672. else
  1673.   cat > conftest.$ac_ext <<EOF
  1674. #line 1675 "configure"
  1675. #include "confdefs.h"
  1676.  
  1677. int main() {
  1678.  
  1679. /* Ultrix mips cc rejects this.  */
  1680. typedef int charset[2]; const charset x;
  1681. /* SunOS 4.1.1 cc rejects this.  */
  1682. char const *const *ccp;
  1683. char **p;
  1684. /* NEC SVR4.0.2 mips cc rejects this.  */
  1685. struct point {int x, y;};
  1686. static struct point const zero = {0,0};
  1687. /* AIX XL C 1.02.0.0 rejects this.
  1688.    It does not let you subtract one const X* pointer from another in an arm
  1689.    of an if-expression whose if-part is not a constant expression */
  1690. const char *g = "string";
  1691. ccp = &g + (g ? g-g : 0);
  1692. /* HPUX 7.0 cc rejects these. */
  1693. ++ccp;
  1694. p = (char**) ccp;
  1695. ccp = (char const *const *) p;
  1696. { /* SCO 3.2v4 cc rejects this.  */
  1697.   char *t;
  1698.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1699.  
  1700.   *t++ = 0;
  1701. }
  1702. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1703.   int x[] = {25, 17};
  1704.   const int *foo = &x[0];
  1705.   ++foo;
  1706. }
  1707. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1708.   typedef const int *iptr;
  1709.   iptr p = 0;
  1710.   ++p;
  1711. }
  1712. { /* AIX XL C 1.02.0.0 rejects this saying
  1713.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1714.   struct s { int j; const int *ap[3]; };
  1715.   struct s *b; b->j = 5;
  1716. }
  1717. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1718.   const int foo = 10;
  1719. }
  1720.  
  1721. ; return 0; }
  1722. EOF
  1723. if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1724.   rm -rf conftest*
  1725.   ac_cv_c_const=yes
  1726. else
  1727.   echo "configure: failed program was:" >&5
  1728.   cat conftest.$ac_ext >&5
  1729.   rm -rf conftest*
  1730.   ac_cv_c_const=no
  1731. fi
  1732. rm -f conftest*
  1733. fi
  1734.  
  1735. echo "$ac_t""$ac_cv_c_const" 1>&6
  1736. if test $ac_cv_c_const = no; then
  1737.   cat >> confdefs.h <<\EOF
  1738. #define const 
  1739. EOF
  1740.  
  1741. fi
  1742.             echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1743. echo "configure:1744: checking whether stat file-mode macros are broken" >&5
  1744. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1745.   echo $ac_n "(cached) $ac_c" 1>&6
  1746. else
  1747.   cat > conftest.$ac_ext <<EOF
  1748. #line 1749 "configure"
  1749. #include "confdefs.h"
  1750. #include <sys/types.h>
  1751. #include <sys/stat.h>
  1752.  
  1753. #if defined(S_ISBLK) && defined(S_IFDIR)
  1754. # if S_ISBLK (S_IFDIR)
  1755. You lose.
  1756. # endif
  1757. #endif
  1758.  
  1759. #if defined(S_ISBLK) && defined(S_IFCHR)
  1760. # if S_ISBLK (S_IFCHR)
  1761. You lose.
  1762. # endif
  1763. #endif
  1764.  
  1765. #if defined(S_ISLNK) && defined(S_IFREG)
  1766. # if S_ISLNK (S_IFREG)
  1767. You lose.
  1768. # endif
  1769. #endif
  1770.  
  1771. #if defined(S_ISSOCK) && defined(S_IFREG)
  1772. # if S_ISSOCK (S_IFREG)
  1773. You lose.
  1774. # endif
  1775. #endif
  1776.  
  1777. EOF
  1778. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1779.   egrep "You lose" >/dev/null 2>&1; then
  1780.   rm -rf conftest*
  1781.   ac_cv_header_stat_broken=yes
  1782. else
  1783.   rm -rf conftest*
  1784.   ac_cv_header_stat_broken=no
  1785. fi
  1786. rm -f conftest*
  1787.  
  1788. fi
  1789.  
  1790. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1791. if test $ac_cv_header_stat_broken = yes; then
  1792.   cat >> confdefs.h <<\EOF
  1793. #define STAT_MACROS_BROKEN 1
  1794. EOF
  1795.  
  1796. fi
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802. for ac_func in memmove psignal mktemp pstat_getdynamic \
  1803.            dup2 getcwd sigsetmask getgroups setlinebuf \
  1804.            seteuid setegid setreuid setregid strerror strsignal
  1805. do
  1806. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1807. echo "configure:1808: checking for $ac_func" >&5
  1808. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1809.   echo $ac_n "(cached) $ac_c" 1>&6
  1810. else
  1811.   cat > conftest.$ac_ext <<EOF
  1812. #line 1813 "configure"
  1813. #include "confdefs.h"
  1814. /* System header to define __stub macros and hopefully few prototypes,
  1815.     which can conflict with char $ac_func(); below.  */
  1816. #include <assert.h>
  1817. /* Override any gcc2 internal prototype to avoid an error.  */
  1818. /* We use char because int might match the return type of a gcc2
  1819.     builtin and then its argument prototype would still apply.  */
  1820. char $ac_func();
  1821.  
  1822. int main() {
  1823.  
  1824. /* The GNU C library defines this for functions which it implements
  1825.     to always fail with ENOSYS.  Some functions are actually named
  1826.     something starting with __ and the normal name is an alias.  */
  1827. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1828. choke me
  1829. #else
  1830. $ac_func();
  1831. #endif
  1832.  
  1833. ; return 0; }
  1834. EOF
  1835. if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1836.   rm -rf conftest*
  1837.   eval "ac_cv_func_$ac_func=yes"
  1838. else
  1839.   echo "configure: failed program was:" >&5
  1840.   cat conftest.$ac_ext >&5
  1841.   rm -rf conftest*
  1842.   eval "ac_cv_func_$ac_func=no"
  1843. fi
  1844. rm -f conftest*
  1845. fi
  1846.  
  1847. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1848.   echo "$ac_t""yes" 1>&6
  1849.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1850.   cat >> confdefs.h <<EOF
  1851. #define $ac_tr_func 1
  1852. EOF
  1853.  
  1854. else
  1855.   echo "$ac_t""no" 1>&6
  1856. fi
  1857. done
  1858.  
  1859. echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
  1860. echo "configure:1861: checking for sys_siglist" >&5
  1861. if eval "test \"`echo '$''{'ac_cv_check_symbol_sys_siglist'+set}'`\" = set"; then
  1862.   echo $ac_n "(cached) $ac_c" 1>&6
  1863. else
  1864.   cat > conftest.$ac_ext <<EOF
  1865. #line 1866 "configure"
  1866. #include "confdefs.h"
  1867.  
  1868. int main() {
  1869. extern char *sys_siglist[]; puts(*sys_siglist);
  1870. ; return 0; }
  1871. EOF
  1872. if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1873.   rm -rf conftest*
  1874.   ac_cv_check_symbol_sys_siglist=yes
  1875. else
  1876.   echo "configure: failed program was:" >&5
  1877.   cat conftest.$ac_ext >&5
  1878.   rm -rf conftest*
  1879.   ac_cv_check_symbol_sys_siglist=no
  1880. fi
  1881. rm -f conftest*
  1882. fi
  1883.  
  1884. if test "$ac_cv_check_symbol_sys_siglist" = yes; then
  1885.   ac_tr_symbol=`echo sys_siglist | tr '[a-z]' '[A-Z]'`
  1886.   cat >> confdefs.h <<EOF
  1887. #define HAVE_${ac_tr_symbol} 1
  1888. EOF
  1889.  
  1890. fi
  1891. echo "$ac_t""$ac_cv_check_symbol_sys_siglist" 1>&6
  1892. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1893. # for constant arguments.  Useless!
  1894. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1895. echo "configure:1896: checking for working alloca.h" >&5
  1896. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1897.   echo $ac_n "(cached) $ac_c" 1>&6
  1898. else
  1899.   cat > conftest.$ac_ext <<EOF
  1900. #line 1901 "configure"
  1901. #include "confdefs.h"
  1902. #include <alloca.h>
  1903. int main() {
  1904. char *p = alloca(2 * sizeof(int));
  1905. ; return 0; }
  1906. EOF
  1907. if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1908.   rm -rf conftest*
  1909.   ac_cv_header_alloca_h=yes
  1910. else
  1911.   echo "configure: failed program was:" >&5
  1912.   cat conftest.$ac_ext >&5
  1913.   rm -rf conftest*
  1914.   ac_cv_header_alloca_h=no
  1915. fi
  1916. rm -f conftest*
  1917. fi
  1918.  
  1919. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1920. if test $ac_cv_header_alloca_h = yes; then
  1921.   cat >> confdefs.h <<\EOF
  1922. #define HAVE_ALLOCA_H 1
  1923. EOF
  1924.  
  1925. fi
  1926.  
  1927. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1928. echo "configure:1929: checking for alloca" >&5
  1929. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  1930.   echo $ac_n "(cached) $ac_c" 1>&6
  1931. else
  1932.   cat > conftest.$ac_ext <<EOF
  1933. #line 1934 "configure"
  1934. #include "confdefs.h"
  1935.  
  1936. #ifdef __GNUC__
  1937. # define alloca __builtin_alloca
  1938. #else
  1939. # if HAVE_ALLOCA_H
  1940. #  include <alloca.h>
  1941. # else
  1942. #  ifdef _AIX
  1943.  #pragma alloca
  1944. #  else
  1945. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1946. char *alloca ();
  1947. #   endif
  1948. #  endif
  1949. # endif
  1950. #endif
  1951.  
  1952. int main() {
  1953. char *p = (char *) alloca(1);
  1954. ; return 0; }
  1955. EOF
  1956. if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1957.   rm -rf conftest*
  1958.   ac_cv_func_alloca_works=yes
  1959. else
  1960.   echo "configure: failed program was:" >&5
  1961.   cat conftest.$ac_ext >&5
  1962.   rm -rf conftest*
  1963.   ac_cv_func_alloca_works=no
  1964. fi
  1965. rm -f conftest*
  1966. fi
  1967.  
  1968. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  1969. if test $ac_cv_func_alloca_works = yes; then
  1970.   cat >> confdefs.h <<\EOF
  1971. #define HAVE_ALLOCA 1
  1972. EOF
  1973.  
  1974. fi
  1975.  
  1976. if test $ac_cv_func_alloca_works = no; then
  1977.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1978.   # that cause trouble.  Some versions do not even contain alloca or
  1979.   # contain a buggy version.  If you still want to use their alloca,
  1980.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1981.   ALLOCA=alloca.o
  1982.   cat >> confdefs.h <<\EOF
  1983. #define C_ALLOCA 1
  1984. EOF
  1985.  
  1986.  
  1987. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1988. echo "configure:1989: checking whether alloca needs Cray hooks" >&5
  1989. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1990.   echo $ac_n "(cached) $ac_c" 1>&6
  1991. else
  1992.   cat > conftest.$ac_ext <<EOF
  1993. #line 1994 "configure"
  1994. #include "confdefs.h"
  1995. #if defined(CRAY) && ! defined(CRAY2)
  1996. webecray
  1997. #else
  1998. wenotbecray
  1999. #endif
  2000.  
  2001. EOF
  2002. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2003.   egrep "webecray" >/dev/null 2>&1; then
  2004.   rm -rf conftest*
  2005.   ac_cv_os_cray=yes
  2006. else
  2007.   rm -rf conftest*
  2008.   ac_cv_os_cray=no
  2009. fi
  2010. rm -f conftest*
  2011.  
  2012. fi
  2013.  
  2014. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2015. if test $ac_cv_os_cray = yes; then
  2016. for ac_func in _getb67 GETB67 getb67; do
  2017.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2018. echo "configure:2019: checking for $ac_func" >&5
  2019. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2020.   echo $ac_n "(cached) $ac_c" 1>&6
  2021. else
  2022.   cat > conftest.$ac_ext <<EOF
  2023. #line 2024 "configure"
  2024. #include "confdefs.h"
  2025. /* System header to define __stub macros and hopefully few prototypes,
  2026.     which can conflict with char $ac_func(); below.  */
  2027. #include <assert.h>
  2028. /* Override any gcc2 internal prototype to avoid an error.  */
  2029. /* We use char because int might match the return type of a gcc2
  2030.     builtin and then its argument prototype would still apply.  */
  2031. char $ac_func();
  2032.  
  2033. int main() {
  2034.  
  2035. /* The GNU C library defines this for functions which it implements
  2036.     to always fail with ENOSYS.  Some functions are actually named
  2037.     something starting with __ and the normal name is an alias.  */
  2038. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2039. choke me
  2040. #else
  2041. $ac_func();
  2042. #endif
  2043.  
  2044. ; return 0; }
  2045. EOF
  2046. if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2047.   rm -rf conftest*
  2048.   eval "ac_cv_func_$ac_func=yes"
  2049. else
  2050.   echo "configure: failed program was:" >&5
  2051.   cat conftest.$ac_ext >&5
  2052.   rm -rf conftest*
  2053.   eval "ac_cv_func_$ac_func=no"
  2054. fi
  2055. rm -f conftest*
  2056. fi
  2057.  
  2058. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2059.   echo "$ac_t""yes" 1>&6
  2060.   cat >> confdefs.h <<EOF
  2061. #define CRAY_STACKSEG_END $ac_func
  2062. EOF
  2063.  
  2064.   break
  2065. else
  2066.   echo "$ac_t""no" 1>&6
  2067. fi
  2068.  
  2069. done
  2070. fi
  2071.  
  2072. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2073. echo "configure:2074: checking stack direction for C alloca" >&5
  2074. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2075.   echo $ac_n "(cached) $ac_c" 1>&6
  2076. else
  2077.   if test "$cross_compiling" = yes; then
  2078.   ac_cv_c_stack_direction=0
  2079. else
  2080.   cat > conftest.$ac_ext <<EOF
  2081. #line 2082 "configure"
  2082. #include "confdefs.h"
  2083. find_stack_direction ()
  2084. {
  2085.   static char *addr = 0;
  2086.   auto char dummy;
  2087.   if (addr == 0)
  2088.     {
  2089.       addr = &dummy;
  2090.       return find_stack_direction ();
  2091.     }
  2092.   else
  2093.     return (&dummy > addr) ? 1 : -1;
  2094. }
  2095. main ()
  2096. {
  2097.   exit (find_stack_direction() < 0);
  2098. }
  2099. EOF
  2100. if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2101. then
  2102.   ac_cv_c_stack_direction=1
  2103. else
  2104.   echo "configure: failed program was:" >&5
  2105.   cat conftest.$ac_ext >&5
  2106.   rm -fr conftest*
  2107.   ac_cv_c_stack_direction=-1
  2108. fi
  2109. rm -fr conftest*
  2110. fi
  2111.  
  2112. fi
  2113.  
  2114. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2115. cat >> confdefs.h <<EOF
  2116. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2117. EOF
  2118.  
  2119. fi
  2120.  
  2121. ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
  2122. echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
  2123. echo "configure:2124: checking for vfork.h" >&5
  2124. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2125.   echo $ac_n "(cached) $ac_c" 1>&6
  2126. else
  2127.   cat > conftest.$ac_ext <<EOF
  2128. #line 2129 "configure"
  2129. #include "confdefs.h"
  2130. #include <vfork.h>
  2131. EOF
  2132. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2133. { (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2134. ac_err=`grep -v '^ *+' conftest.out`
  2135. if test -z "$ac_err"; then
  2136.   rm -rf conftest*
  2137.   eval "ac_cv_header_$ac_safe=yes"
  2138. else
  2139.   echo "$ac_err" >&5
  2140.   echo "configure: failed program was:" >&5
  2141.   cat conftest.$ac_ext >&5
  2142.   rm -rf conftest*
  2143.   eval "ac_cv_header_$ac_safe=no"
  2144. fi
  2145. rm -f conftest*
  2146. fi
  2147. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2148.   echo "$ac_t""yes" 1>&6
  2149.   cat >> confdefs.h <<\EOF
  2150. #define HAVE_VFORK_H 1
  2151. EOF
  2152.  
  2153. else
  2154.   echo "$ac_t""no" 1>&6
  2155. fi
  2156.  
  2157. echo $ac_n "checking for working vfork""... $ac_c" 1>&6
  2158. echo "configure:2159: checking for working vfork" >&5
  2159. if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
  2160.   echo $ac_n "(cached) $ac_c" 1>&6
  2161. else
  2162.   if test "$cross_compiling" = yes; then
  2163.   echo $ac_n "checking for vfork""... $ac_c" 1>&6
  2164. echo "configure:2165: checking for vfork" >&5
  2165. if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
  2166.   echo $ac_n "(cached) $ac_c" 1>&6
  2167. else
  2168.   cat > conftest.$ac_ext <<EOF
  2169. #line 2170 "configure"
  2170. #include "confdefs.h"
  2171. /* System header to define __stub macros and hopefully few prototypes,
  2172.     which can conflict with char vfork(); below.  */
  2173. #include <assert.h>
  2174. /* Override any gcc2 internal prototype to avoid an error.  */
  2175. /* We use char because int might match the return type of a gcc2
  2176.     builtin and then its argument prototype would still apply.  */
  2177. char vfork();
  2178.  
  2179. int main() {
  2180.  
  2181. /* The GNU C library defines this for functions which it implements
  2182.     to always fail with ENOSYS.  Some functions are actually named
  2183.     something starting with __ and the normal name is an alias.  */
  2184. #if defined (__stub_vfork) || defined (__stub___vfork)
  2185. choke me
  2186. #else
  2187. vfork();
  2188. #endif
  2189.  
  2190. ; return 0; }
  2191. EOF
  2192. if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2193.   rm -rf conftest*
  2194.   eval "ac_cv_func_vfork=yes"
  2195. else
  2196.   echo "configure: failed program was:" >&5
  2197.   cat conftest.$ac_ext >&5
  2198.   rm -rf conftest*
  2199.   eval "ac_cv_func_vfork=no"
  2200. fi
  2201. rm -f conftest*
  2202. fi
  2203.  
  2204. if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
  2205.   echo "$ac_t""yes" 1>&6
  2206.   :
  2207. else
  2208.   echo "$ac_t""no" 1>&6
  2209. fi
  2210.  
  2211. else
  2212.   cat > conftest.$ac_ext <<EOF
  2213. #line 2214 "configure"
  2214. #include "confdefs.h"
  2215. /* Thanks to Paul Eggert for this test.  */
  2216. #include <stdio.h>
  2217. #include <sys/types.h>
  2218. #include <sys/stat.h>
  2219. #ifdef HAVE_UNISTD_H
  2220. #include <unistd.h>
  2221. #endif
  2222. #ifdef HAVE_VFORK_H
  2223. #include <vfork.h>
  2224. #endif
  2225. /* On some sparc systems, changes by the child to local and incoming
  2226.    argument registers are propagated back to the parent.
  2227.    The compiler is told about this with #include <vfork.h>,
  2228.    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  2229.    Test for this by using a static variable whose address
  2230.    is put into a register that is clobbered by the vfork.  */
  2231. static
  2232. #ifdef __cplusplus
  2233. sparc_address_test (int arg)
  2234. #else
  2235. sparc_address_test (arg) int arg;
  2236. #endif
  2237. {
  2238.   static pid_t child;
  2239.   if (!child) {
  2240.     child = vfork ();
  2241.     if (child < 0) {
  2242.       perror ("vfork");
  2243.       _exit(2);
  2244.     }
  2245.     if (!child) {
  2246.       arg = getpid();
  2247.       write(-1, "", 0);
  2248.       _exit (arg);
  2249.     }
  2250.   }
  2251. }
  2252. main() {
  2253.   pid_t parent = getpid ();
  2254.   pid_t child;
  2255.  
  2256.   sparc_address_test ();
  2257.  
  2258.   child = vfork ();
  2259.  
  2260.   if (child == 0) {
  2261.     /* Here is another test for sparc vfork register problems.
  2262.        This test uses lots of local variables, at least
  2263.        as many local variables as main has allocated so far
  2264.        including compiler temporaries.  4 locals are enough for
  2265.        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
  2266.        A buggy compiler should reuse the register of parent
  2267.        for one of the local variables, since it will think that
  2268.        parent can't possibly be used any more in this routine.
  2269.        Assigning to the local variable will thus munge parent
  2270.        in the parent process.  */
  2271.     pid_t
  2272.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  2273.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  2274.     /* Convince the compiler that p..p7 are live; otherwise, it might
  2275.        use the same hardware register for all 8 local variables.  */
  2276.     if (p != p1 || p != p2 || p != p3 || p != p4
  2277.     || p != p5 || p != p6 || p != p7)
  2278.       _exit(1);
  2279.  
  2280.     /* On some systems (e.g. IRIX 3.3),
  2281.        vfork doesn't separate parent from child file descriptors.
  2282.        If the child closes a descriptor before it execs or exits,
  2283.        this munges the parent's descriptor as well.
  2284.        Test for this by closing stdout in the child.  */
  2285.     _exit(close(fileno(stdout)) != 0);
  2286.   } else {
  2287.     int status;
  2288.     struct stat st;
  2289.  
  2290.     while (wait(&status) != child)
  2291.       ;
  2292.     exit(
  2293.      /* Was there some problem with vforking?  */
  2294.      child < 0
  2295.  
  2296.      /* Did the child fail?  (This shouldn't happen.)  */
  2297.      || status
  2298.  
  2299.      /* Did the vfork/compiler bug occur?  */
  2300.      || parent != getpid()
  2301.  
  2302.      /* Did the file descriptor bug occur?  */
  2303.      || fstat(fileno(stdout), &st) != 0
  2304.      );
  2305.   }
  2306. }
  2307. EOF
  2308. if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2309. then
  2310.   ac_cv_func_vfork_works=yes
  2311. else
  2312.   echo "configure: failed program was:" >&5
  2313.   cat conftest.$ac_ext >&5
  2314.   rm -fr conftest*
  2315.   ac_cv_func_vfork_works=no
  2316. fi
  2317. rm -fr conftest*
  2318. fi
  2319.  
  2320. fi
  2321.  
  2322. echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
  2323. if test $ac_cv_func_vfork_works = no; then
  2324.   cat >> confdefs.h <<\EOF
  2325. #define vfork fork
  2326. EOF
  2327.  
  2328. fi
  2329.  
  2330. echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
  2331. echo "configure:2332: checking whether setvbuf arguments are reversed" >&5
  2332. if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
  2333.   echo $ac_n "(cached) $ac_c" 1>&6
  2334. else
  2335.   if test "$cross_compiling" = yes; then
  2336.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2337. else
  2338.   cat > conftest.$ac_ext <<EOF
  2339. #line 2340 "configure"
  2340. #include "confdefs.h"
  2341. #include <stdio.h>
  2342. /* If setvbuf has the reversed format, exit 0. */
  2343. main () {
  2344.   /* This call has the arguments reversed.
  2345.      A reversed system may check and see that the address of main
  2346.      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  2347.   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
  2348.     exit(1);
  2349.   putc('\r', stdout);
  2350.   exit(0);            /* Non-reversed systems segv here.  */
  2351. }
  2352. EOF
  2353. if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2354. then
  2355.   ac_cv_func_setvbuf_reversed=yes
  2356. else
  2357.   echo "configure: failed program was:" >&5
  2358.   cat conftest.$ac_ext >&5
  2359.   rm -fr conftest*
  2360.   ac_cv_func_setvbuf_reversed=no
  2361. fi
  2362. rm -fr conftest*
  2363. fi
  2364.  
  2365. rm -f core core.* *.core
  2366. fi
  2367.  
  2368. echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
  2369. if test $ac_cv_func_setvbuf_reversed = yes; then
  2370.   cat >> confdefs.h <<\EOF
  2371. #define SETVBUF_REVERSED 1
  2372. EOF
  2373.  
  2374. fi
  2375.  
  2376. ac_have_func=no # yes means we've found a way to get the load average.
  2377.  
  2378. # Some systems with -lutil have (and need) -lkvm as well, some do not.
  2379. # On Solaris, -lkvm requires nlist from -lelf, so check that first
  2380. # to get the right answer into the cache.
  2381. echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
  2382. echo "configure:2383: checking for elf_begin in -lelf" >&5
  2383. ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
  2384. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2385.   echo $ac_n "(cached) $ac_c" 1>&6
  2386. else
  2387.   ac_save_LIBS="$LIBS"
  2388. LIBS="-lelf  $LIBS"
  2389. cat > conftest.$ac_ext <<EOF
  2390. #line 2391 "configure"
  2391. #include "confdefs.h"
  2392. /* Override any gcc2 internal prototype to avoid an error.  */
  2393. /* We use char because int might match the return type of a gcc2
  2394.     builtin and then its argument prototype would still apply.  */
  2395. char elf_begin();
  2396.  
  2397. int main() {
  2398. elf_begin()
  2399. ; return 0; }
  2400. EOF
  2401. if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2402.   rm -rf conftest*
  2403.   eval "ac_cv_lib_$ac_lib_var=yes"
  2404. else
  2405.   echo "configure: failed program was:" >&5
  2406.   cat conftest.$ac_ext >&5
  2407.   rm -rf conftest*
  2408.   eval "ac_cv_lib_$ac_lib_var=no"
  2409. fi
  2410. rm -f conftest*
  2411. LIBS="$ac_save_LIBS"
  2412.  
  2413. fi
  2414. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2415.   echo "$ac_t""yes" 1>&6
  2416.   LIBS="-lelf $LIBS"
  2417. else
  2418.   echo "$ac_t""no" 1>&6
  2419. fi
  2420.  
  2421. echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
  2422. echo "configure:2423: checking for kvm_open in -lkvm" >&5
  2423. ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
  2424. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2425.   echo $ac_n "(cached) $ac_c" 1>&6
  2426. else
  2427.   ac_save_LIBS="$LIBS"
  2428. LIBS="-lkvm  $LIBS"
  2429. cat > conftest.$ac_ext <<EOF
  2430. #line 2431 "configure"
  2431. #include "confdefs.h"
  2432. /* Override any gcc2 internal prototype to avoid an error.  */
  2433. /* We use char because int might match the return type of a gcc2
  2434.     builtin and then its argument prototype would still apply.  */
  2435. char kvm_open();
  2436.  
  2437. int main() {
  2438. kvm_open()
  2439. ; return 0; }
  2440. EOF
  2441. if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2442.   rm -rf conftest*
  2443.   eval "ac_cv_lib_$ac_lib_var=yes"
  2444. else
  2445.   echo "configure: failed program was:" >&5
  2446.   cat conftest.$ac_ext >&5
  2447.   rm -rf conftest*
  2448.   eval "ac_cv_lib_$ac_lib_var=no"
  2449. fi
  2450. rm -f conftest*
  2451. LIBS="$ac_save_LIBS"
  2452.  
  2453. fi
  2454. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2455.   echo "$ac_t""yes" 1>&6
  2456.   LIBS="-lkvm $LIBS"
  2457. else
  2458.   echo "$ac_t""no" 1>&6
  2459. fi
  2460.  
  2461. # Check for the 4.4BSD definition of getloadavg.
  2462. echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
  2463. echo "configure:2464: checking for getloadavg in -lutil" >&5
  2464. ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
  2465. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2466.   echo $ac_n "(cached) $ac_c" 1>&6
  2467. else
  2468.   ac_save_LIBS="$LIBS"
  2469. LIBS="-lutil  $LIBS"
  2470. cat > conftest.$ac_ext <<EOF
  2471. #line 2472 "configure"
  2472. #include "confdefs.h"
  2473. /* Override any gcc2 internal prototype to avoid an error.  */
  2474. /* We use char because int might match the return type of a gcc2
  2475.     builtin and then its argument prototype would still apply.  */
  2476. char getloadavg();
  2477.  
  2478. int main() {
  2479. getloadavg()
  2480. ; return 0; }
  2481. EOF
  2482. if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2483.   rm -rf conftest*
  2484.   eval "ac_cv_lib_$ac_lib_var=yes"
  2485. else
  2486.   echo "configure: failed program was:" >&5
  2487.   cat conftest.$ac_ext >&5
  2488.   rm -rf conftest*
  2489.   eval "ac_cv_lib_$ac_lib_var=no"
  2490. fi
  2491. rm -f conftest*
  2492. LIBS="$ac_save_LIBS"
  2493.  
  2494. fi
  2495. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2496.   echo "$ac_t""yes" 1>&6
  2497.   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
  2498. else
  2499.   echo "$ac_t""no" 1>&6
  2500. fi
  2501.  
  2502.  
  2503. if test $ac_have_func = no; then
  2504.   # There is a commonly available library for RS/6000 AIX.
  2505.   # Since it is not a standard part of AIX, it might be installed locally.
  2506.   ac_getloadavg_LIBS="$LIBS" LIBS="-L/usr/local/lib $LIBS"
  2507.   echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
  2508. echo "configure:2509: checking for getloadavg in -lgetloadavg" >&5
  2509. ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
  2510. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2511.   echo $ac_n "(cached) $ac_c" 1>&6
  2512. else
  2513.   ac_save_LIBS="$LIBS"
  2514. LIBS="-lgetloadavg  $LIBS"
  2515. cat > conftest.$ac_ext <<EOF
  2516. #line 2517 "configure"
  2517. #include "confdefs.h"
  2518. /* Override any gcc2 internal prototype to avoid an error.  */
  2519. /* We use char because int might match the return type of a gcc2
  2520.     builtin and then its argument prototype would still apply.  */
  2521. char getloadavg();
  2522.  
  2523. int main() {
  2524. getloadavg()
  2525. ; return 0; }
  2526. EOF
  2527. if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2528.   rm -rf conftest*
  2529.   eval "ac_cv_lib_$ac_lib_var=yes"
  2530. else
  2531.   echo "configure: failed program was:" >&5
  2532.   cat conftest.$ac_ext >&5
  2533.   rm -rf conftest*
  2534.   eval "ac_cv_lib_$ac_lib_var=no"
  2535. fi
  2536. rm -f conftest*
  2537. LIBS="$ac_save_LIBS"
  2538.  
  2539. fi
  2540. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2541.   echo "$ac_t""yes" 1>&6
  2542.   LIBS="-lgetloadavg $LIBS"
  2543. else
  2544.   echo "$ac_t""no" 1>&6
  2545. LIBS="$ac_getloadavg_LIBS"
  2546. fi
  2547.  
  2548. fi
  2549.  
  2550. # Make sure it is really in the library, if we think we found it.
  2551. for ac_func in getloadavg
  2552. do
  2553. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2554. echo "configure:2555: checking for $ac_func" >&5
  2555. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2556.   echo $ac_n "(cached) $ac_c" 1>&6
  2557. else
  2558.   cat > conftest.$ac_ext <<EOF
  2559. #line 2560 "configure"
  2560. #include "confdefs.h"
  2561. /* System header to define __stub macros and hopefully few prototypes,
  2562.     which can conflict with char $ac_func(); below.  */
  2563. #include <assert.h>
  2564. /* Override any gcc2 internal prototype to avoid an error.  */
  2565. /* We use char because int might match the return type of a gcc2
  2566.     builtin and then its argument prototype would still apply.  */
  2567. char $ac_func();
  2568.  
  2569. int main() {
  2570.  
  2571. /* The GNU C library defines this for functions which it implements
  2572.     to always fail with ENOSYS.  Some functions are actually named
  2573.     something starting with __ and the normal name is an alias.  */
  2574. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2575. choke me
  2576. #else
  2577. $ac_func();
  2578. #endif
  2579.  
  2580. ; return 0; }
  2581. EOF
  2582. if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2583.   rm -rf conftest*
  2584.   eval "ac_cv_func_$ac_func=yes"
  2585. else
  2586.   echo "configure: failed program was:" >&5
  2587.   cat conftest.$ac_ext >&5
  2588.   rm -rf conftest*
  2589.   eval "ac_cv_func_$ac_func=no"
  2590. fi
  2591. rm -f conftest*
  2592. fi
  2593.  
  2594. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2595.   echo "$ac_t""yes" 1>&6
  2596.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2597.   cat >> confdefs.h <<EOF
  2598. #define $ac_tr_func 1
  2599. EOF
  2600.  
  2601. else
  2602.   echo "$ac_t""no" 1>&6
  2603. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2604. fi
  2605. done
  2606.  
  2607.  
  2608.  
  2609. if test $ac_cv_func_getloadavg = yes; then
  2610.   cat >> confdefs.h <<\EOF
  2611. #define HAVE_GETLOADAVG 1
  2612. EOF
  2613.  
  2614.   ac_have_func=yes
  2615. else
  2616.   # Figure out what our getloadavg.c needs.
  2617.   ac_have_func=no
  2618.   ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
  2619. echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
  2620. echo "configure:2621: checking for sys/dg_sys_info.h" >&5
  2621. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2622.   echo $ac_n "(cached) $ac_c" 1>&6
  2623. else
  2624.   cat > conftest.$ac_ext <<EOF
  2625. #line 2626 "configure"
  2626. #include "confdefs.h"
  2627. #include <sys/dg_sys_info.h>
  2628. EOF
  2629. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2630. { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2631. ac_err=`grep -v '^ *+' conftest.out`
  2632. if test -z "$ac_err"; then
  2633.   rm -rf conftest*
  2634.   eval "ac_cv_header_$ac_safe=yes"
  2635. else
  2636.   echo "$ac_err" >&5
  2637.   echo "configure: failed program was:" >&5
  2638.   cat conftest.$ac_ext >&5
  2639.   rm -rf conftest*
  2640.   eval "ac_cv_header_$ac_safe=no"
  2641. fi
  2642. rm -f conftest*
  2643. fi
  2644. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2645.   echo "$ac_t""yes" 1>&6
  2646.   ac_have_func=yes; cat >> confdefs.h <<\EOF
  2647. #define DGUX 1
  2648. EOF
  2649.  
  2650.   echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
  2651. echo "configure:2652: checking for dg_sys_info in -ldgc" >&5
  2652. ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
  2653. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2654.   echo $ac_n "(cached) $ac_c" 1>&6
  2655. else
  2656.   ac_save_LIBS="$LIBS"
  2657. LIBS="-ldgc  $LIBS"
  2658. cat > conftest.$ac_ext <<EOF
  2659. #line 2660 "configure"
  2660. #include "confdefs.h"
  2661. /* Override any gcc2 internal prototype to avoid an error.  */
  2662. /* We use char because int might match the return type of a gcc2
  2663.     builtin and then its argument prototype would still apply.  */
  2664. char dg_sys_info();
  2665.  
  2666. int main() {
  2667. dg_sys_info()
  2668. ; return 0; }
  2669. EOF
  2670. if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2671.   rm -rf conftest*
  2672.   eval "ac_cv_lib_$ac_lib_var=yes"
  2673. else
  2674.   echo "configure: failed program was:" >&5
  2675.   cat conftest.$ac_ext >&5
  2676.   rm -rf conftest*
  2677.   eval "ac_cv_lib_$ac_lib_var=no"
  2678. fi
  2679. rm -f conftest*
  2680. LIBS="$ac_save_LIBS"
  2681.  
  2682. fi
  2683. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2684.   echo "$ac_t""yes" 1>&6
  2685.     ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2686.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2687.   cat >> confdefs.h <<EOF
  2688. #define $ac_tr_lib 1
  2689. EOF
  2690.  
  2691.   LIBS="-ldgc $LIBS"
  2692.  
  2693. else
  2694.   echo "$ac_t""no" 1>&6
  2695. fi
  2696.  
  2697. else
  2698.   echo "$ac_t""no" 1>&6
  2699. fi
  2700.  
  2701.  
  2702.   # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  2703.   # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
  2704.   # Irix 4.0.5F has the header but not the library.
  2705.   if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then
  2706.     ac_have_func=yes; cat >> confdefs.h <<\EOF
  2707. #define SVR4 1
  2708. EOF
  2709.  
  2710.   fi
  2711.  
  2712.   if test $ac_have_func = no; then
  2713.     ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
  2714. echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
  2715. echo "configure:2716: checking for inq_stats/cpustats.h" >&5
  2716. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2717.   echo $ac_n "(cached) $ac_c" 1>&6
  2718. else
  2719.   cat > conftest.$ac_ext <<EOF
  2720. #line 2721 "configure"
  2721. #include "confdefs.h"
  2722. #include <inq_stats/cpustats.h>
  2723. EOF
  2724. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2725. { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2726. ac_err=`grep -v '^ *+' conftest.out`
  2727. if test -z "$ac_err"; then
  2728.   rm -rf conftest*
  2729.   eval "ac_cv_header_$ac_safe=yes"
  2730. else
  2731.   echo "$ac_err" >&5
  2732.   echo "configure: failed program was:" >&5
  2733.   cat conftest.$ac_ext >&5
  2734.   rm -rf conftest*
  2735.   eval "ac_cv_header_$ac_safe=no"
  2736. fi
  2737. rm -f conftest*
  2738. fi
  2739. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2740.   echo "$ac_t""yes" 1>&6
  2741.   ac_have_func=yes; cat >> confdefs.h <<\EOF
  2742. #define UMAX 1
  2743. EOF
  2744.  
  2745.     cat >> confdefs.h <<\EOF
  2746. #define UMAX4_3 1
  2747. EOF
  2748.  
  2749. else
  2750.   echo "$ac_t""no" 1>&6
  2751. fi
  2752.  
  2753.   fi
  2754.  
  2755.   if test $ac_have_func = no; then
  2756.     ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
  2757. echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
  2758. echo "configure:2759: checking for sys/cpustats.h" >&5
  2759. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2760.   echo $ac_n "(cached) $ac_c" 1>&6
  2761. else
  2762.   cat > conftest.$ac_ext <<EOF
  2763. #line 2764 "configure"
  2764. #include "confdefs.h"
  2765. #include <sys/cpustats.h>
  2766. EOF
  2767. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2768. { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2769. ac_err=`grep -v '^ *+' conftest.out`
  2770. if test -z "$ac_err"; then
  2771.   rm -rf conftest*
  2772.   eval "ac_cv_header_$ac_safe=yes"
  2773. else
  2774.   echo "$ac_err" >&5
  2775.   echo "configure: failed program was:" >&5
  2776.   cat conftest.$ac_ext >&5
  2777.   rm -rf conftest*
  2778.   eval "ac_cv_header_$ac_safe=no"
  2779. fi
  2780. rm -f conftest*
  2781. fi
  2782. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2783.   echo "$ac_t""yes" 1>&6
  2784.   ac_have_func=yes; cat >> confdefs.h <<\EOF
  2785. #define UMAX 1
  2786. EOF
  2787.  
  2788. else
  2789.   echo "$ac_t""no" 1>&6
  2790. fi
  2791.  
  2792.   fi
  2793.  
  2794.   if test $ac_have_func = no; then
  2795.     for ac_hdr in mach/mach.h
  2796. do
  2797. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2798. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2799. echo "configure:2800: checking for $ac_hdr" >&5
  2800. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2801.   echo $ac_n "(cached) $ac_c" 1>&6
  2802. else
  2803.   cat > conftest.$ac_ext <<EOF
  2804. #line 2805 "configure"
  2805. #include "confdefs.h"
  2806. #include <$ac_hdr>
  2807. EOF
  2808. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2809. { (eval echo configure:2810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2810. ac_err=`grep -v '^ *+' conftest.out`
  2811. if test -z "$ac_err"; then
  2812.   rm -rf conftest*
  2813.   eval "ac_cv_header_$ac_safe=yes"
  2814. else
  2815.   echo "$ac_err" >&5
  2816.   echo "configure: failed program was:" >&5
  2817.   cat conftest.$ac_ext >&5
  2818.   rm -rf conftest*
  2819.   eval "ac_cv_header_$ac_safe=no"
  2820. fi
  2821. rm -f conftest*
  2822. fi
  2823. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2824.   echo "$ac_t""yes" 1>&6
  2825.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2826.   cat >> confdefs.h <<EOF
  2827. #define $ac_tr_hdr 1
  2828. EOF
  2829.  
  2830. else
  2831.   echo "$ac_t""no" 1>&6
  2832. fi
  2833. done
  2834.  
  2835.   fi
  2836.  
  2837.   ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
  2838. echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
  2839. echo "configure:2840: checking for nlist.h" >&5
  2840. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2841.   echo $ac_n "(cached) $ac_c" 1>&6
  2842. else
  2843.   cat > conftest.$ac_ext <<EOF
  2844. #line 2845 "configure"
  2845. #include "confdefs.h"
  2846. #include <nlist.h>
  2847. EOF
  2848. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2849. { (eval echo configure:2850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2850. ac_err=`grep -v '^ *+' conftest.out`
  2851. if test -z "$ac_err"; then
  2852.   rm -rf conftest*
  2853.   eval "ac_cv_header_$ac_safe=yes"
  2854. else
  2855.   echo "$ac_err" >&5
  2856.   echo "configure: failed program was:" >&5
  2857.   cat conftest.$ac_ext >&5
  2858.   rm -rf conftest*
  2859.   eval "ac_cv_header_$ac_safe=no"
  2860. fi
  2861. rm -f conftest*
  2862. fi
  2863. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2864.   echo "$ac_t""yes" 1>&6
  2865.   cat >> confdefs.h <<\EOF
  2866. #define NLIST_STRUCT 1
  2867. EOF
  2868.  
  2869.   echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
  2870. echo "configure:2871: checking for n_un in struct nlist" >&5
  2871. if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
  2872.   echo $ac_n "(cached) $ac_c" 1>&6
  2873. else
  2874.   cat > conftest.$ac_ext <<EOF
  2875. #line 2876 "configure"
  2876. #include "confdefs.h"
  2877. #include <nlist.h>
  2878. int main() {
  2879. struct nlist n; n.n_un.n_name = 0;
  2880. ; return 0; }
  2881. EOF
  2882. if { (eval echo configure:2883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2883.   rm -rf conftest*
  2884.   ac_cv_struct_nlist_n_un=yes
  2885. else
  2886.   echo "configure: failed program was:" >&5
  2887.   cat conftest.$ac_ext >&5
  2888.   rm -rf conftest*
  2889.   ac_cv_struct_nlist_n_un=no
  2890. fi
  2891. rm -f conftest*
  2892. fi
  2893.  
  2894. echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
  2895.   if test $ac_cv_struct_nlist_n_un = yes; then
  2896.     cat >> confdefs.h <<\EOF
  2897. #define NLIST_NAME_UNION 1
  2898. EOF
  2899.  
  2900.   fi
  2901.   
  2902. else
  2903.   echo "$ac_t""no" 1>&6
  2904. fi
  2905. fi # Do not have getloadavg in system libraries.
  2906.  
  2907. # Some definitions of getloadavg require that the program be installed setgid.
  2908. echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
  2909. echo "configure:2910: checking whether getloadavg requires setgid" >&5
  2910. if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
  2911.   echo $ac_n "(cached) $ac_c" 1>&6
  2912. else
  2913.   cat > conftest.$ac_ext <<EOF
  2914. #line 2915 "configure"
  2915. #include "confdefs.h"
  2916. #include "$srcdir/getloadavg.c"
  2917. #ifdef LDAV_PRIVILEGED
  2918. Yowza Am I SETGID yet
  2919. #endif
  2920. EOF
  2921. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2922.   egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
  2923.   rm -rf conftest*
  2924.   ac_cv_func_getloadavg_setgid=yes
  2925. else
  2926.   rm -rf conftest*
  2927.   ac_cv_func_getloadavg_setgid=no
  2928. fi
  2929. rm -f conftest*
  2930.  
  2931. fi
  2932.  
  2933. echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
  2934. if test $ac_cv_func_getloadavg_setgid = yes; then
  2935.   NEED_SETGID=true; cat >> confdefs.h <<\EOF
  2936. #define GETLOADAVG_PRIVILEGED 1
  2937. EOF
  2938.  
  2939. else
  2940.   NEED_SETGID=false
  2941. fi
  2942.  
  2943. if test $ac_cv_func_getloadavg_setgid = yes; then
  2944.   echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
  2945. echo "configure:2946: checking group of /dev/kmem" >&5
  2946. if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
  2947.   echo $ac_n "(cached) $ac_c" 1>&6
  2948. else
  2949.     # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
  2950.   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
  2951.   # If we got an error (system does not support symlinks), try without -L.
  2952.   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
  2953.   ac_cv_group_kmem=`echo $ac_ls_output \
  2954.     | sed -ne 's/[     ][     ]*/ /g;
  2955.            s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
  2956.            / /s/.* //;p;'`
  2957.  
  2958. fi
  2959.  
  2960. echo "$ac_t""$ac_cv_group_kmem" 1>&6
  2961.   KMEM_GROUP=$ac_cv_group_kmem
  2962. fi
  2963.  
  2964. echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
  2965. echo "configure:2966: checking for kstat_open in -lkstat" >&5
  2966. ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
  2967. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2968.   echo $ac_n "(cached) $ac_c" 1>&6
  2969. else
  2970.   ac_save_LIBS="$LIBS"
  2971. LIBS="-lkstat  $LIBS"
  2972. cat > conftest.$ac_ext <<EOF
  2973. #line 2974 "configure"
  2974. #include "confdefs.h"
  2975. /* Override any gcc2 internal prototype to avoid an error.  */
  2976. /* We use char because int might match the return type of a gcc2
  2977.     builtin and then its argument prototype would still apply.  */
  2978. char kstat_open();
  2979.  
  2980. int main() {
  2981. kstat_open()
  2982. ; return 0; }
  2983. EOF
  2984. if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2985.   rm -rf conftest*
  2986.   eval "ac_cv_lib_$ac_lib_var=yes"
  2987. else
  2988.   echo "configure: failed program was:" >&5
  2989.   cat conftest.$ac_ext >&5
  2990.   rm -rf conftest*
  2991.   eval "ac_cv_lib_$ac_lib_var=no"
  2992. fi
  2993. rm -f conftest*
  2994. LIBS="$ac_save_LIBS"
  2995.  
  2996. fi
  2997. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2998.   echo "$ac_t""yes" 1>&6
  2999.     ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3000.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3001.   cat >> confdefs.h <<EOF
  3002. #define $ac_tr_lib 1
  3003. EOF
  3004.  
  3005.   LIBS="-lkstat $LIBS"
  3006.  
  3007. else
  3008.   echo "$ac_t""no" 1>&6
  3009. fi
  3010.  
  3011. echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
  3012. echo "configure:3013: checking for working strcoll" >&5
  3013. if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
  3014.   echo $ac_n "(cached) $ac_c" 1>&6
  3015. else
  3016.   if test "$cross_compiling" = yes; then
  3017.   ac_cv_func_strcoll_works=no
  3018. else
  3019.   cat > conftest.$ac_ext <<EOF
  3020. #line 3021 "configure"
  3021. #include "confdefs.h"
  3022. #include <string.h>
  3023. main ()
  3024. {
  3025.   exit (strcoll ("abc", "def") >= 0 ||
  3026.     strcoll ("ABC", "DEF") >= 0 ||
  3027.     strcoll ("123", "456") >= 0);
  3028. }
  3029. EOF
  3030. if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  3031. then
  3032.   ac_cv_func_strcoll_works=yes
  3033. else
  3034.   echo "configure: failed program was:" >&5
  3035.   cat conftest.$ac_ext >&5
  3036.   rm -fr conftest*
  3037.   ac_cv_func_strcoll_works=no
  3038. fi
  3039. rm -fr conftest*
  3040. fi
  3041.  
  3042. fi
  3043.  
  3044. echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
  3045. if test $ac_cv_func_strcoll_works = yes; then
  3046.   cat >> confdefs.h <<\EOF
  3047. #define HAVE_STRCOLL 1
  3048. EOF
  3049.  
  3050. fi
  3051.  
  3052.  
  3053. # Check out the wait reality.
  3054. for ac_hdr in sys/wait.h
  3055. do
  3056. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3057. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3058. echo "configure:3059: checking for $ac_hdr" >&5
  3059. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3060.   echo $ac_n "(cached) $ac_c" 1>&6
  3061. else
  3062.   cat > conftest.$ac_ext <<EOF
  3063. #line 3064 "configure"
  3064. #include "confdefs.h"
  3065. #include <$ac_hdr>
  3066. EOF
  3067. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3068. { (eval echo configure:3069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3069. ac_err=`grep -v '^ *+' conftest.out`
  3070. if test -z "$ac_err"; then
  3071.   rm -rf conftest*
  3072.   eval "ac_cv_header_$ac_safe=yes"
  3073. else
  3074.   echo "$ac_err" >&5
  3075.   echo "configure: failed program was:" >&5
  3076.   cat conftest.$ac_ext >&5
  3077.   rm -rf conftest*
  3078.   eval "ac_cv_header_$ac_safe=no"
  3079. fi
  3080. rm -f conftest*
  3081. fi
  3082. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3083.   echo "$ac_t""yes" 1>&6
  3084.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3085.   cat >> confdefs.h <<EOF
  3086. #define $ac_tr_hdr 1
  3087. EOF
  3088.  
  3089. else
  3090.   echo "$ac_t""no" 1>&6
  3091. fi
  3092. done
  3093.  for ac_func in waitpid wait3
  3094. do
  3095. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3096. echo "configure:3097: checking for $ac_func" >&5
  3097. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3098.   echo $ac_n "(cached) $ac_c" 1>&6
  3099. else
  3100.   cat > conftest.$ac_ext <<EOF
  3101. #line 3102 "configure"
  3102. #include "confdefs.h"
  3103. /* System header to define __stub macros and hopefully few prototypes,
  3104.     which can conflict with char $ac_func(); below.  */
  3105. #include <assert.h>
  3106. /* Override any gcc2 internal prototype to avoid an error.  */
  3107. /* We use char because int might match the return type of a gcc2
  3108.     builtin and then its argument prototype would still apply.  */
  3109. char $ac_func();
  3110.  
  3111. int main() {
  3112.  
  3113. /* The GNU C library defines this for functions which it implements
  3114.     to always fail with ENOSYS.  Some functions are actually named
  3115.     something starting with __ and the normal name is an alias.  */
  3116. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3117. choke me
  3118. #else
  3119. $ac_func();
  3120. #endif
  3121.  
  3122. ; return 0; }
  3123. EOF
  3124. if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3125.   rm -rf conftest*
  3126.   eval "ac_cv_func_$ac_func=yes"
  3127. else
  3128.   echo "configure: failed program was:" >&5
  3129.   cat conftest.$ac_ext >&5
  3130.   rm -rf conftest*
  3131.   eval "ac_cv_func_$ac_func=no"
  3132. fi
  3133. rm -f conftest*
  3134. fi
  3135.  
  3136. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3137.   echo "$ac_t""yes" 1>&6
  3138.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3139.   cat >> confdefs.h <<EOF
  3140. #define $ac_tr_func 1
  3141. EOF
  3142.  
  3143. else
  3144.   echo "$ac_t""no" 1>&6
  3145. fi
  3146. done
  3147.  
  3148. echo $ac_n "checking for union wait""... $ac_c" 1>&6
  3149. echo "configure:3150: checking for union wait" >&5
  3150. if eval "test \"`echo '$''{'make_cv_union_wait'+set}'`\" = set"; then
  3151.   echo $ac_n "(cached) $ac_c" 1>&6
  3152. else
  3153.   cat > conftest.$ac_ext <<EOF
  3154. #line 3155 "configure"
  3155. #include "confdefs.h"
  3156. #include <sys/types.h>
  3157. #include <sys/wait.h>
  3158. int main() {
  3159. union wait status; int pid; pid = wait (&status);
  3160. #ifdef WEXITSTATUS
  3161. /* Some POSIXoid systems have both the new-style macros and the old
  3162.    union wait type, and they do not work together.  If union wait
  3163.    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
  3164. if (WEXITSTATUS (status) != 0) pid = -1;
  3165. #ifdef WTERMSIG
  3166. /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
  3167. -- blow chunks here --
  3168. #endif
  3169. #endif
  3170. #ifdef HAVE_WAITPID
  3171. /* Make sure union wait works with waitpid.  */
  3172. pid = waitpid (-1, &status, 0);
  3173. #endif
  3174.  
  3175. ; return 0; }
  3176. EOF
  3177. if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3178.   rm -rf conftest*
  3179.   make_cv_union_wait=yes
  3180. else
  3181.   echo "configure: failed program was:" >&5
  3182.   cat conftest.$ac_ext >&5
  3183.   rm -rf conftest*
  3184.   make_cv_union_wait=no
  3185. fi
  3186. rm -f conftest*
  3187. fi
  3188.  
  3189. if test "$make_cv_union_wait" = yes; then
  3190.   cat >> confdefs.h <<\EOF
  3191. #define HAVE_UNION_WAIT 1
  3192. EOF
  3193.  
  3194. fi
  3195. echo "$ac_t""$make_cv_union_wait" 1>&6
  3196.  
  3197. echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
  3198. echo "configure:3199: checking for sys_siglist declaration in signal.h or unistd.h" >&5
  3199. if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
  3200.   echo $ac_n "(cached) $ac_c" 1>&6
  3201. else
  3202.   cat > conftest.$ac_ext <<EOF
  3203. #line 3204 "configure"
  3204. #include "confdefs.h"
  3205. #include <sys/types.h>
  3206. #include <signal.h>
  3207. /* NetBSD declares sys_siglist in unistd.h.  */
  3208. #ifdef HAVE_UNISTD_H
  3209. #include <unistd.h>
  3210. #endif
  3211. int main() {
  3212. char *msg = *(sys_siglist + 1);
  3213. ; return 0; }
  3214. EOF
  3215. if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3216.   rm -rf conftest*
  3217.   ac_cv_decl_sys_siglist=yes
  3218. else
  3219.   echo "configure: failed program was:" >&5
  3220.   cat conftest.$ac_ext >&5
  3221.   rm -rf conftest*
  3222.   ac_cv_decl_sys_siglist=no
  3223. fi
  3224. rm -f conftest*
  3225. fi
  3226.  
  3227. echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
  3228. if test $ac_cv_decl_sys_siglist = yes; then
  3229.   cat >> confdefs.h <<\EOF
  3230. #define SYS_SIGLIST_DECLARED 1
  3231. EOF
  3232.  
  3233. fi
  3234.  
  3235.  
  3236. # The presence of the following is not meant to imply
  3237. # that make necessarily works on those systems.
  3238. echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
  3239. echo "configure:3240: checking for getpwnam in -lsun" >&5
  3240. ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
  3241. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3242.   echo $ac_n "(cached) $ac_c" 1>&6
  3243. else
  3244.   ac_save_LIBS="$LIBS"
  3245. LIBS="-lsun  $LIBS"
  3246. cat > conftest.$ac_ext <<EOF
  3247. #line 3248 "configure"
  3248. #include "confdefs.h"
  3249. /* Override any gcc2 internal prototype to avoid an error.  */
  3250. /* We use char because int might match the return type of a gcc2
  3251.     builtin and then its argument prototype would still apply.  */
  3252. char getpwnam();
  3253.  
  3254. int main() {
  3255. getpwnam()
  3256. ; return 0; }
  3257. EOF
  3258. if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3259.   rm -rf conftest*
  3260.   eval "ac_cv_lib_$ac_lib_var=yes"
  3261. else
  3262.   echo "configure: failed program was:" >&5
  3263.   cat conftest.$ac_ext >&5
  3264.   rm -rf conftest*
  3265.   eval "ac_cv_lib_$ac_lib_var=no"
  3266. fi
  3267. rm -f conftest*
  3268. LIBS="$ac_save_LIBS"
  3269.  
  3270. fi
  3271. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3272.   echo "$ac_t""yes" 1>&6
  3273.     ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3274.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3275.   cat >> confdefs.h <<EOF
  3276. #define $ac_tr_lib 1
  3277. EOF
  3278.  
  3279.   LIBS="-lsun $LIBS"
  3280.  
  3281. else
  3282.   echo "$ac_t""no" 1>&6
  3283. fi
  3284.  
  3285.  
  3286.  REMOTE=stub
  3287. # Check whether --with-customs or --without-customs was given.
  3288. if test "${with_customs+set}" = set; then
  3289.   withval="$with_customs"
  3290.   REMOTE=cstms LIBS="$LIBS libcustoms.a"
  3291. fi
  3292.  
  3293.  
  3294. echo checking for location of SCCS get command
  3295. if test -f /usr/sccs/get; then
  3296.   SCCS_GET=/usr/sccs/get
  3297.   cat >> confdefs.h <<\EOF
  3298. #define SCCS_GET "/usr/sccs/get"
  3299. EOF
  3300.  
  3301. else
  3302.   SCCS_GET=get
  3303.   cat >> confdefs.h <<\EOF
  3304. #define SCCS_GET "get"
  3305. EOF
  3306.  
  3307. fi
  3308. ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
  3309. if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
  3310.    test -f s.conftest; then
  3311.   # We successfully created an SCCS file.
  3312.   echo checking if SCCS get command understands -G
  3313.   if $SCCS_GET -Gconftoast s.conftest >/dev/null 2>&1 &&
  3314.      test -f conftoast; then
  3315.     cat >> confdefs.h <<\EOF
  3316. #define SCCS_GET_MINUS_G 1
  3317. EOF
  3318.  
  3319.   fi
  3320. fi
  3321. rm -f s.conftest conftoast
  3322.  
  3323. trap '' 1 2 15
  3324. cat > confcache <<\EOF
  3325. # This file is a shell script that caches the results of configure
  3326. # tests run on this system so they can be shared between configure
  3327. # scripts and configure runs.  It is not useful on other systems.
  3328. # If it contains results you don't want to keep, you may remove or edit it.
  3329. #
  3330. # By default, configure uses ./config.cache as the cache file,
  3331. # creating it if it does not exist already.  You can give configure
  3332. # the --cache-file=FILE option to use a different cache file; that is
  3333. # what configure does when it calls configure scripts in
  3334. # subdirectories, so they share the cache.
  3335. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3336. # config.status only pays attention to the cache file if you give it the
  3337. # --recheck option to rerun configure.
  3338. #
  3339. EOF
  3340. # The following way of writing the cache mishandles newlines in values,
  3341. # but we know of no workaround that is simple, portable, and efficient.
  3342. # So, don't put newlines in cache variables' values.
  3343. # Ultrix sh set writes to stderr and can't be redirected directly,
  3344. # and sets the high bit in the cache file unless we assign to the vars.
  3345. (set) 2>&1 |
  3346.   case `(ac_space=' '; set) 2>&1` in
  3347.   *ac_space=\ *)
  3348.     # `set' does not quote correctly, so add quotes (double-quote substitution
  3349.     # turns \\\\ into \\, and sed turns \\ into \).
  3350.     sed -n \
  3351.       -e "s/'/'\\\\''/g" \
  3352.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3353.     ;;
  3354.   *)
  3355.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  3356.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3357.     ;;
  3358.   esac >> confcache
  3359. if cmp -s $cache_file confcache; then
  3360.   :
  3361. else
  3362.   if test -w $cache_file; then
  3363.     echo "updating cache $cache_file"
  3364.     cat confcache > $cache_file
  3365.   else
  3366.     echo "not updating unwritable cache $cache_file"
  3367.   fi
  3368. fi
  3369. rm -f confcache
  3370.  
  3371. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3372.  
  3373. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3374. # Let make expand exec_prefix.
  3375. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3376.  
  3377. # Any assignment to VPATH causes Sun make to only execute
  3378. # the first set of double-colon rules, so remove it if not needed.
  3379. # If there is a colon in the path, we need to keep it.
  3380. if test "x$srcdir" = x.; then
  3381.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3382. fi
  3383.  
  3384. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3385.  
  3386. DEFS=-DHAVE_CONFIG_H
  3387.  
  3388. # Without the "./", some shells look in PATH for config.status.
  3389. : ${CONFIG_STATUS=./config.status}
  3390.  
  3391. echo creating $CONFIG_STATUS
  3392. rm -f $CONFIG_STATUS
  3393. cat > $CONFIG_STATUS <<EOF
  3394. #! /bin/sh
  3395. # Generated automatically by configure.
  3396. # Run this file to recreate the current configuration.
  3397. # This directory was configured as follows,
  3398. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3399. #
  3400. # $0 $ac_configure_args
  3401. #
  3402. # Compiler output produced by configure, useful for debugging
  3403. # configure, is in ./config.log if it exists.
  3404.  
  3405. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3406. for ac_option
  3407. do
  3408.   case "\$ac_option" in
  3409.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3410.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3411.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3412.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3413.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  3414.     exit 0 ;;
  3415.   -help | --help | --hel | --he | --h)
  3416.     echo "\$ac_cs_usage"; exit 0 ;;
  3417.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3418.   esac
  3419. done
  3420.  
  3421. ac_given_srcdir=$srcdir
  3422. ac_given_INSTALL="$INSTALL"
  3423.  
  3424. trap 'rm -fr `echo "Makefile build.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3425. EOF
  3426. cat >> $CONFIG_STATUS <<EOF
  3427.  
  3428. # Protect against being on the right side of a sed subst in config.status.
  3429. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3430.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3431. $ac_vpsub
  3432. $extrasub
  3433. s%@CFLAGS@%$CFLAGS%g
  3434. s%@CPPFLAGS@%$CPPFLAGS%g
  3435. s%@CXXFLAGS@%$CXXFLAGS%g
  3436. s%@DEFS@%$DEFS%g
  3437. s%@LDFLAGS@%$LDFLAGS%g
  3438. s%@LIBS@%$LIBS%g
  3439. s%@exec_prefix@%$exec_prefix%g
  3440. s%@prefix@%$prefix%g
  3441. s%@program_transform_name@%$program_transform_name%g
  3442. s%@bindir@%$bindir%g
  3443. s%@sbindir@%$sbindir%g
  3444. s%@libexecdir@%$libexecdir%g
  3445. s%@datadir@%$datadir%g
  3446. s%@sysconfdir@%$sysconfdir%g
  3447. s%@sharedstatedir@%$sharedstatedir%g
  3448. s%@localstatedir@%$localstatedir%g
  3449. s%@libdir@%$libdir%g
  3450. s%@includedir@%$includedir%g
  3451. s%@oldincludedir@%$oldincludedir%g
  3452. s%@infodir@%$infodir%g
  3453. s%@mandir@%$mandir%g
  3454. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3455. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3456. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3457. s%@PACKAGE@%$PACKAGE%g
  3458. s%@VERSION@%$VERSION%g
  3459. s%@ACLOCAL@%$ACLOCAL%g
  3460. s%@AUTOCONF@%$AUTOCONF%g
  3461. s%@AUTOMAKE@%$AUTOMAKE%g
  3462. s%@AUTOHEADER@%$AUTOHEADER%g
  3463. s%@MAKEINFO@%$MAKEINFO%g
  3464. s%@SET_MAKE@%$SET_MAKE%g
  3465. s%@subdirs@%$subdirs%g
  3466. s%@MAINT_MAKEFILE_TRUE@%$MAINT_MAKEFILE_TRUE%g
  3467. s%@MAINT_MAKEFILE_FALSE@%$MAINT_MAKEFILE_FALSE%g
  3468. s%@CC@%$CC%g
  3469. s%@CPP@%$CPP%g
  3470. s%@LIBOBJS@%$LIBOBJS%g
  3471. s%@ALLOCA@%$ALLOCA%g
  3472. s%@NEED_SETGID@%$NEED_SETGID%g
  3473. s%@KMEM_GROUP@%$KMEM_GROUP%g
  3474. s%@REMOTE@%$REMOTE%g
  3475.  
  3476. CEOF
  3477. EOF
  3478.  
  3479. cat >> $CONFIG_STATUS <<\EOF
  3480.  
  3481. # Split the substitutions into bite-sized pieces for seds with
  3482. # small command number limits, like on Digital OSF/1 and HP-UX.
  3483. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  3484. ac_file=1 # Number of current file.
  3485. ac_beg=1 # First line for current file.
  3486. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  3487. ac_more_lines=:
  3488. ac_sed_cmds=""
  3489. while $ac_more_lines; do
  3490.   if test $ac_beg -gt 1; then
  3491.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  3492.   else
  3493.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  3494.   fi
  3495.   if test ! -s conftest.s$ac_file; then
  3496.     ac_more_lines=false
  3497.     rm -f conftest.s$ac_file
  3498.   else
  3499.     if test -z "$ac_sed_cmds"; then
  3500.       ac_sed_cmds="sed -f conftest.s$ac_file"
  3501.     else
  3502.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  3503.     fi
  3504.     ac_file=`expr $ac_file + 1`
  3505.     ac_beg=$ac_end
  3506.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  3507.   fi
  3508. done
  3509. if test -z "$ac_sed_cmds"; then
  3510.   ac_sed_cmds=cat
  3511. fi
  3512. EOF
  3513.  
  3514. cat >> $CONFIG_STATUS <<EOF
  3515.  
  3516. CONFIG_FILES=\${CONFIG_FILES-"Makefile build.sh"}
  3517. EOF
  3518. cat >> $CONFIG_STATUS <<\EOF
  3519. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3520.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3521.   case "$ac_file" in
  3522.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3523.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3524.   *) ac_file_in="${ac_file}.in" ;;
  3525.   esac
  3526.  
  3527.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3528.  
  3529.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3530.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3531.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3532.     # The file is in a subdirectory.
  3533.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3534.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3535.     # A "../" for each directory in $ac_dir_suffix.
  3536.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3537.   else
  3538.     ac_dir_suffix= ac_dots=
  3539.   fi
  3540.  
  3541.   case "$ac_given_srcdir" in
  3542.   .)  srcdir=.
  3543.       if test -z "$ac_dots"; then top_srcdir=.
  3544.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3545.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3546.   *) # Relative path.
  3547.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3548.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3549.   esac
  3550.  
  3551.   case "$ac_given_INSTALL" in
  3552.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3553.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3554.   esac
  3555.  
  3556.   echo creating "$ac_file"
  3557.   rm -f "$ac_file"
  3558.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3559.   case "$ac_file" in
  3560.   *Makefile*) ac_comsub="1i\\
  3561. # $configure_input" ;;
  3562.   *) ac_comsub= ;;
  3563.   esac
  3564.  
  3565.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3566.   sed -e "$ac_comsub
  3567. s%@configure_input@%$configure_input%g
  3568. s%@srcdir@%$srcdir%g
  3569. s%@top_srcdir@%$top_srcdir%g
  3570. s%@INSTALL@%$INSTALL%g
  3571. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3572. fi; done
  3573. rm -f conftest.s*
  3574.  
  3575. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3576. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3577. #
  3578. # ac_d sets the value in "#define NAME VALUE" lines.
  3579. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3580. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3581. ac_dC='\3'
  3582. ac_dD='%g'
  3583. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3584. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3585. ac_uB='\([     ]\)%\1#\2define\3'
  3586. ac_uC=' '
  3587. ac_uD='\4%g'
  3588. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3589. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3590. ac_eB='$%\1#\2define\3'
  3591. ac_eC=' '
  3592. ac_eD='%g'
  3593.  
  3594. if test "${CONFIG_HEADERS+set}" != set; then
  3595. EOF
  3596. cat >> $CONFIG_STATUS <<EOF
  3597.   CONFIG_HEADERS="config.h"
  3598. EOF
  3599. cat >> $CONFIG_STATUS <<\EOF
  3600. fi
  3601. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3602.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3603.   case "$ac_file" in
  3604.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3605.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3606.   *) ac_file_in="${ac_file}.in" ;;
  3607.   esac
  3608.  
  3609.   echo creating $ac_file
  3610.  
  3611.   rm -f conftest.frag conftest.in conftest.out
  3612.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3613.   cat $ac_file_inputs > conftest.in
  3614.  
  3615. EOF
  3616.  
  3617. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3618. # the proper values into config.h.in to produce config.h.  And first:
  3619. # Protect against being on the right side of a sed subst in config.status.
  3620. # Protect against being in an unquoted here document in config.status.
  3621. rm -f conftest.vals
  3622. cat > conftest.hdr <<\EOF
  3623. s/[\\&%]/\\&/g
  3624. s%[\\$`]%\\&%g
  3625. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3626. s%ac_d%ac_u%gp
  3627. s%ac_u%ac_e%gp
  3628. EOF
  3629. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3630. rm -f conftest.hdr
  3631.  
  3632. # This sed command replaces #undef with comments.  This is necessary, for
  3633. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3634. # on some systems where configure will not decide to define it.
  3635. cat >> conftest.vals <<\EOF
  3636. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3637. EOF
  3638.  
  3639. # Break up conftest.vals because some shells have a limit on
  3640. # the size of here documents, and old seds have small limits too.
  3641.  
  3642. rm -f conftest.tail
  3643. while :
  3644. do
  3645.   ac_lines=`grep -c . conftest.vals`
  3646.   # grep -c gives empty output for an empty file on some AIX systems.
  3647.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3648.   # Write a limited-size here document to conftest.frag.
  3649.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3650.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3651.   echo 'CEOF
  3652.   sed -f conftest.frag conftest.in > conftest.out
  3653.   rm -f conftest.in
  3654.   mv conftest.out conftest.in
  3655. ' >> $CONFIG_STATUS
  3656.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3657.   rm -f conftest.vals
  3658.   mv conftest.tail conftest.vals
  3659. done
  3660. rm -f conftest.vals
  3661.  
  3662. cat >> $CONFIG_STATUS <<\EOF
  3663.   rm -f conftest.frag conftest.h
  3664.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3665.   cat conftest.in >> conftest.h
  3666.   rm -f conftest.in
  3667.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3668.     echo "$ac_file is unchanged"
  3669.     rm -f conftest.h
  3670.   else
  3671.     # Remove last slash and all that follows it.  Not all systems have dirname.
  3672.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3673.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3674.       # The file is in a subdirectory.
  3675.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  3676.     fi
  3677.     rm -f $ac_file
  3678.     mv conftest.h $ac_file
  3679.   fi
  3680. fi; done
  3681.  
  3682. EOF
  3683. cat >> $CONFIG_STATUS <<EOF
  3684.  
  3685.  
  3686. EOF
  3687. cat >> $CONFIG_STATUS <<\EOF
  3688. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  3689.  
  3690. exit 0
  3691. EOF
  3692. chmod +x $CONFIG_STATUS
  3693. rm -fr confdefs* $ac_clean_files
  3694. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3695.  
  3696. if test "$no_recursion" != yes; then
  3697.  
  3698.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  3699.   ac_sub_configure_args=
  3700.   ac_prev=
  3701.   for ac_arg in $ac_configure_args; do
  3702.     if test -n "$ac_prev"; then
  3703.       ac_prev=
  3704.       continue
  3705.     fi
  3706.     case "$ac_arg" in
  3707.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  3708.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  3709.       ac_prev=cache_file ;;
  3710.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  3711.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  3712.       ;;
  3713.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  3714.       ac_prev=srcdir ;;
  3715.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  3716.       ;;
  3717.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  3718.     esac
  3719.   done
  3720.  
  3721.   for ac_config_dir in glob; do
  3722.  
  3723.     # Do not complain, so a configure script can configure whichever
  3724.     # parts of a large source tree are present.
  3725.     if test ! -d $srcdir/$ac_config_dir; then
  3726.       continue
  3727.     fi
  3728.  
  3729.     echo configuring in $ac_config_dir
  3730.  
  3731.     case "$srcdir" in
  3732.     .) ;;
  3733.     *)
  3734.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  3735.       else
  3736.         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  3737.       fi
  3738.       ;;
  3739.     esac
  3740.  
  3741.     ac_popdir=`pwd`
  3742.     cd $ac_config_dir
  3743.  
  3744.       # A "../" for each directory in /$ac_config_dir.
  3745.       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  3746.  
  3747.     case "$srcdir" in
  3748.     .) # No --srcdir option.  We are building in place.
  3749.       ac_sub_srcdir=$srcdir ;;
  3750.     /*) # Absolute path.
  3751.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  3752.     *) # Relative path.
  3753.       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  3754.     esac
  3755.  
  3756.     # Check for guested configure; otherwise get Cygnus style configure.
  3757.     if test -f $ac_sub_srcdir/configure; then
  3758.       ac_sub_configure=$ac_sub_srcdir/configure
  3759.     elif test -f $ac_sub_srcdir/configure.in; then
  3760.       ac_sub_configure=$ac_configure
  3761.     else
  3762.       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  3763.       ac_sub_configure=
  3764.     fi
  3765.  
  3766.     # The recursion is here.
  3767.     if test -n "$ac_sub_configure"; then
  3768.  
  3769.       # Make the cache file name correct relative to the subdirectory.
  3770.       case "$cache_file" in
  3771.       /*) ac_sub_cache_file=$cache_file ;;
  3772.       *) # Relative path.
  3773.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  3774.       esac
  3775.   case "$ac_given_INSTALL" in
  3776.         [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3777.         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3778.         esac
  3779.  
  3780.       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  3781.       # The eval makes quoting arguments work.
  3782.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  3783.       then :
  3784.       else
  3785.         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  3786.       fi
  3787.     fi
  3788.  
  3789.     cd $ac_popdir
  3790.   done
  3791. fi
  3792.  
  3793.  
  3794.